domingo, 8 de julio de 2018

Angular (ng test): Error: No provider for [object WindowConstructor]

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [...],
providers: [
...
{ provide: Window, useValue: window }
],

No hay comentarios: