Created
February 6, 2018 10:24
-
-
Save atamanroman/d5b66fe90ec2d4248c023dfe0d02d69d to your computer and use it in GitHub Desktop.
subscribe expect done
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
describe('getBooks()', () => { | |
it('should return the whole list of books with an Observable', (done) => | |
inject([BookStaticAsyncDataService], (service: BookStaticAsyncDataService) => { | |
service.getBooks().subscribe(b => { | |
expect(b.length).toBe(3); | |
done(); | |
}); | |
})()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment