Created
October 8, 2019 11:52
-
-
Save IAfanasovMob/20005ccb54d3d4f27c33ab322d9ab1c3 to your computer and use it in GitHub Desktop.
should make http call spec
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(`should make http call to proper GitHub API url when show button is clicked`, () => { | |
| component.userName = 'IAfanasov'; | |
| fixture.debugElement.query(By.css('button')).nativeElement.click(); | |
| expect(() => httpMock.expectOne('https://api.github.com/users/IAfanasov/starred')) | |
| .not.toThrow(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment