Given the following code:
describe('search', () => {
it('parses YouTube response',
inject([YouTubeService, MockBackend], fakeAsync((service, backend) => {
let res;
// other stuff
service.search('hey').subscribe(_res => {
res = _res;
});
tick();
let video = res[0];
expect(video.id).toEqual('VIDEO_ID');
expect(video.title).toEqual('TITLE');
expect(video.description).toEqual('DESCRIPTION');
expect(video.thumbnailUrl).toEqual('THUMBNAIL_URL');
}))
)
});
It would be nice to be able to get everything within the inject block from video onward. This idea probably depends on #16
Given the following code:
It would be nice to be able to get everything within the
injectblock fromvideoonward. This idea probably depends on #16