Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
powerful23 committed Aug 17, 2018
1 parent b0f2acf commit 25f4c81
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/auth/__tests__/auth-unit-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1359,18 +1359,19 @@ describe('auth unit test', () => {
});

const spyon = jest.spyOn(CognitoIdentityCredentials.prototype, "clearCachedId");
const spyon2 = jest.spyOn(Cache, 'removeItem');
const spyon2 = jest.spyOn(Credentials, 'clear').mockImplementationOnce(() => {
return
});
const spyon3 = jest.spyOn(CognitoUserPool.prototype, "getCurrentUser")
.mockImplementationOnce(() => {
return user;
});

await auth.signOut();

expect.assertions(2);
expect.assertions(1);
expect(spyon).toBeCalled();
expect(spyon2).toBeCalledWith('federatedInfo');


spyon.mockClear();
spyon2.mockClear();
spyon3.mockClear();
Expand Down

0 comments on commit 25f4c81

Please sign in to comment.