Skip to content

Commit

Permalink
Remove wip test
Browse files Browse the repository at this point in the history
Remove failed test code
  • Loading branch information
shepherd-l committed Jun 6, 2024
1 parent c7865bc commit 1afc186
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions __test__/unit/http/jwtResponse.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { TestEnvironment } from '../../support/environment/TestEnvironment';
import LoginManager from '../../../src/page/managers/LoginManager';
import { setupLoginStubs } from '../../support/helpers/login';
import { RequestService } from '../../../src/core/requestService/RequestService';
import {
APP_ID,
Expand Down Expand Up @@ -198,22 +196,5 @@ describe('Jwt Http responses', () => {

expect(jwtInvalidated).toHaveBeenCalledTimes(1);
});

// WIP
test('fires jwt invalidated handler on login', async () => {
setupLoginStubs();
await TestEnvironment.initialize({
useMockIdentityModel: true,
useMockPushSubscriptionModel: true,
});

const jwtInvalidated = jest.spyOn(EventHelper, 'onUserJwtInvalidated');

test.nock({}, 401);

await LoginManager.login(DUMMY_EXTERNAL_ID);

expect(jwtInvalidated).toHaveBeenCalledTimes(1);
});
});
});

0 comments on commit 1afc186

Please sign in to comment.