Skip to content

getting the end of a block #18

@jashmenn

Description

@jashmenn

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions