-
-
Save whtswrng/0fe3e0a21e99df8f4e7d6f560ca9419a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('when try to log out user', () => { | |
describe('and when is user logged in', () => { | |
beforeEach(async () => { | |
// ... | |
isUserLoggedIn = jest.fn().mockImplementation(() => new Promise((resolve) => resolve(true))); | |
logOutAction = jest.fn(); | |
// ... | |
}); | |
it('should log user out', () => { | |
expect(logOutAction).toHaveBeenCalledTimes(1); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment