Skip to content

Commit

Permalink
fix: Update failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
sasjo committed Aug 8, 2024
1 parent feedbb5 commit 37faaac
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/backend/test/server.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,12 @@ describe('Express', () => {
},
});
expect(mockVariation).toHaveBeenCalledWith('release.tool-radar', {
kind: 'user',
key: '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08',
email: '[email protected]',
privateAttributeNames: ['email'],
_meta: {
privateAttributeNames: ['email'],
},
}, false);
expect(response.status).toEqual(200);
expect(response.headers.get('content-type')).toEqual('application/json; charset=UTF-8');
Expand All @@ -169,9 +172,12 @@ describe('Express', () => {
},
});
expect(mockVariation).toHaveBeenCalledWith('release.tool-radar', {
kind: 'user',
key: '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08',
email: '[email protected]',
privateAttributeNames: ['email'],
_meta: {
privateAttributeNames: ['email'],
},
}, false);
expect(response.status).toEqual(404);
expect(mockVerifyIdToken).toHaveBeenCalledTimes(1);
Expand Down

0 comments on commit 37faaac

Please sign in to comment.