Created
October 25, 2018 19:00
-
-
Save LayZeeDK/412ce0d4e98b1fb15f82e2706393e2bf to your computer and use it in GitHub Desktop.
Heroes: Testing deletion 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
it('emits all other heroes immediately', fakeAsync(() => { | |
const elektra: Hero = femaleMarvelHeroes.find(x => x.name === 'Elektra'); | |
container.delete(elektra); | |
tick(); | |
expect(observer).toHaveBeenCalledWith( | |
femaleMarvelHeroes.filter(x => x.id !== elektra.id)); | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment