Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting the end of a block #18

Open
jashmenn opened this issue Jun 30, 2016 · 0 comments
Open

getting the end of a block #18

jashmenn opened this issue Jun 30, 2016 · 0 comments

Comments

@jashmenn
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant