Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AydanPirani authored Jan 25, 2024
1 parent 777da6d commit 201d840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/auth/auth-router.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ describe("GET /auth/token/refresh", () => {

const jwtReturned = generateJwtToken.mock.results[generateJwtToken.mock.results.length - 1]!.value as string;
expect(JSON.parse(response.text)).toMatchObject({

Check failure on line 424 in src/services/auth/auth-router.test.ts

View workflow job for this annotation

GitHub Actions / test

GET /auth/token/refresh › refreshes the user's token

expect(received).toMatchObject(expected) - Expected - 1 + Received + 1 Object { - "Authorization": "***", + "token": "***", } at services/auth/auth-router.test.ts:424:43 at fulfilled (services/auth/auth-router.test.ts:28:58)
token: jwtReturned,
Authorization: jwtReturned,
});
});
});

0 comments on commit 201d840

Please sign in to comment.