Skip to content

Commit

Permalink
assert logout callback is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandrpravosudko-okta committed Sep 6, 2022
1 parent 827e8c6 commit 7a92df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/logout.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ describe('logout', () => {
describe('session', () => {
it('calls req.logout()', async () => {
await logout(req, res);
expect(req.logout).toHaveBeenCalledWith();
expect(req.logout).toHaveBeenCalledWith(expect.any(Function));
})
})
});
Expand Down

0 comments on commit 7a92df3

Please sign in to comment.