Skip to content

Commit

Permalink
test for we the one behavior we _do_ want, not one of the infinite be…
Browse files Browse the repository at this point in the history
…haviors we don't
  • Loading branch information
zburke committed Feb 14, 2025
1 parent 92f93e9 commit c4990bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/loginServices.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,8 @@ describe('unauthorizedPath functions', () => {
{ username: 'testuser', password: 'testpass' }
);

expect(global.fetch).not.toHaveBeenCalledWith(
'http://okapi-url/bl-users/login?expandPermissions=true&fullPermissions=true',
expect(global.fetch).toHaveBeenCalledWith(
'http://okapi-url/bl-users/login-with-expiry?expandPermissions=true&fullPermissions=true',
expect.objectContaining({
method: 'POST',
headers: expect.objectContaining({
Expand Down

0 comments on commit c4990bc

Please sign in to comment.