Last active
October 10, 2018 15:43
-
-
Save LayZeeDK/2019733c7553b5ba10c746713780a484 to your computer and use it in GitHub Desktop.
Heroes: Testing initial heroes state
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('emits all heroes', () => { | |
it('all heroes are emitted after subscribing', () => { | |
expect(observer).toHaveBeenCalledWith(femaleMarvelHeroes); | |
}); | |
it(`delegates to ${HeroService.name}`, () => { | |
expect(heroServiceStub.getHeroes).toHaveBeenCalledTimes(1); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment