Last active
December 9, 2018 12:00
-
-
Save whtswrng/dbf6dfe9f2f4908d5a0c955d30a9d96f 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 = createStub().resolves(true); | |
logOutAction = createSpy(); | |
// ... | |
}); | |
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