Created
July 2, 2017 21:50
-
-
Save stevermeister/63a935ecee940fcd21dbaa32b6adb70d 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 UserService', () => { | |
component.someMethod(); | |
expect(spy.calls.any()).toBeTruthy(); | |
}); | |
it('should set user', () => { | |
component.someMethod(); | |
expect(component.user.name).toEqual('John'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment