/* tslint:disable:no-unused-variable */

/*!
 * Window Object Service Test
 *
 * Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph>
 * Licensed under MIT
 */

import { TestBed, async, inject } from '@angular/core/testing';
import { WindowService } from './window.service';

describe('Service: Window', () => {

  beforeEach(() => {
    TestBed.configureTestingModule({
      providers: [
        { provide: WindowService, useValue: window }
      ]
    });
  });

  it('should instantiate the service', inject([WindowService], (service: Window) => {
    expect(service).toBeTruthy();
  }));

  it('should be an instance of window object', inject([WindowService], (service: Window) => {
    expect(service).toBe(window);
  }));

});



/* tslint:disable:no-unused-variable */

/*!
 * Window Object Service Test
 *
 * Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph>
 * Licensed under MIT
 */

import { TestBed, async, inject } from '@angular/core/testing';
import { WindowService } from './window.service';

describe('Service: Window', () => {

  beforeEach(() => {
    TestBed.configureTestingModule({
      providers: [
        { provide: WindowService, useValue: window }
      ]
    });
  });

  it('should instantiate the service', inject([WindowService], (service: Window) => {
    expect(service).toBeTruthy();
  }));

});



--- 
+++ 
@@ -24,6 +24,10 @@
     expect(service).toBeTruthy();
   }));
 
+  it('should be an instance of window object', inject([WindowService], (service: Window) => {
+    expect(service).toBe(window);
+  }));
+
 });
 
 
Add type check to window service
