Created
December 5, 2019 10:02
-
-
Save FunnyGhost/c2dab2d40ae5316c76ff6ab8bbdba793 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 show all the favorite movies', () => { | |
const movieComponents = fixture.debugElement.queryAll(By.directive(FavoriteMovieComponent)); | |
expect(movieComponents.length).toEqual(favoriteMoviesToUse.length); | |
const movieComponentsInputs = movieComponents.map( | |
htmlComponent => (htmlComponent.componentInstance as FavoriteMovieComponent).favoriteMovie | |
); | |
expect(movieComponentsInputs).toEqual(favoriteMoviesToUse); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment