Guest User

Untitled

a guest
Feb 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. describe('getBooks()', () => {
  2. it('should return the whole list of books with an Observable', (done) =>
  3. inject([BookStaticAsyncDataService], (service: BookStaticAsyncDataService) => {
  4. service.getBooks().subscribe(b => {
  5. expect(b.length).toBe(3);
  6. done();
  7. });
  8. })());
  9. });
Add Comment
Please, Sign In to add comment