Karma + Jasmine testing http request

Hello guys!

There is a way to test a data recieved by http?

I’m trying to do something like this code, but i only get:

TypeError: Cannot read property ‘getCookie’ of null

My code:

describe('Service: Menu', () => {
  // beforeEach(() => {
  //   addProviders([MenuService,HTTP_PROVIDERS,GlobalDataService]);
  // });

  beforeEach(()=>{
    addProviders([MenuService,HTTP_PROVIDERS,GlobalDataService])
  });

  it('should ...',
    inject([MenuService],
      (service: MenuService,done) => {
        service.getMenu({ "restaurant": {value:"62d55f3ceec140a486c30c20411dedb" }, "language": "pt-br"}).subscribe(
          response => {
            expect(response.successful).toBeFalsy();
          }
        );
      }));
});