Created
December 17, 2020 12:59
-
-
Save isabelandss/540da34ce4944d2e315d87cb7137c9a8 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
it('should call messageServiceStub.warning when throw error', () => { | |
storeServiceStub.createStore = jest.fn().mockReturnValue( | |
throwError({ | |
id: 'id', | |
}), | |
); | |
component.addStore(newStore); | |
expect(messageServiceStub.warning).toHaveBeenCalledWith('Houve um erro ao criar a loja'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment