Skip to content

Instantly share code, notes, and snippets.

@stevermeister
Created July 2, 2017 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevermeister/63a935ecee940fcd21dbaa32b6adb70d to your computer and use it in GitHub Desktop.
Save stevermeister/63a935ecee940fcd21dbaa32b6adb70d to your computer and use it in GitHub Desktop.
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