Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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();
- });
- })());
- });
Add Comment
Please, Sign In to add comment