2020-08-17 14:51:02 +02:00
|
|
|
// import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
|
|
//
|
|
|
|
// import { ImgMagnifierComponent } from './img-magnifier.component';
|
|
|
|
//
|
|
|
|
// // TODO
|
|
|
|
//
|
|
|
|
// let windowServiceSpy: jasmine.SpyObj<Window>;
|
|
|
|
//
|
|
|
|
// describe('ImgMagnifierComponent', () => {
|
|
|
|
// let component: ImgMagnifierComponent;
|
|
|
|
// let fixture: ComponentFixture<ImgMagnifierComponent>;
|
|
|
|
//
|
|
|
|
// beforeEach(async(() => {
|
|
|
|
// const windowSpy = jasmine.createSpyObj('Window', ['pageXOffset', 'pageYOffset']);
|
|
|
|
//
|
|
|
|
// TestBed.configureTestingModule({
|
|
|
|
// declarations: [ ImgMagnifierComponent ],
|
|
|
|
// imports: [
|
|
|
|
// ],
|
|
|
|
// providers: [
|
|
|
|
// {provide: Window, useValue: windowSpy}
|
|
|
|
// ]
|
|
|
|
// })
|
|
|
|
// .compileComponents();
|
|
|
|
//
|
|
|
|
// windowServiceSpy = TestBed.inject(Window) as jasmine.SpyObj<Window>;
|
|
|
|
// }));
|
|
|
|
//
|
|
|
|
// beforeEach(() => {
|
|
|
|
// fixture = TestBed.createComponent(ImgMagnifierComponent);
|
|
|
|
// component = fixture.componentInstance;
|
|
|
|
// component.ngOnInit();
|
|
|
|
// fixture.detectChanges();
|
|
|
|
// });
|
|
|
|
//
|
|
|
|
// it('should create', () => {
|
|
|
|
// expect(component).toBeTruthy();
|
|
|
|
// });
|
|
|
|
// });
|