Last active
October 10, 2018 15:48
-
-
Save LayZeeDK/74f6465266d5a3d73cb228b6d180d819 to your computer and use it in GitHub Desktop.
Heroes: Testing addition of a hero
This file contains hidden or 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('adds a hero', () => { | |
it('emits the specified hero when server responds', fakeAsync(() => { | |
const wonderWoman = 'Wonder Woman'; | |
container.add(wonderWoman); | |
tick(); | |
expect(observer).toHaveBeenCalledWith([ | |
...femaleMarvelHeroes, | |
{ id: 42, name: wonderWoman }, | |
]); | |
})); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment