diff --git a/lib/components/Redoc/redoc.spec.js b/lib/components/Redoc/redoc.spec.js index a3525c74..87d037d2 100644 --- a/lib/components/Redoc/redoc.spec.js +++ b/lib/components/Redoc/redoc.spec.js @@ -30,6 +30,7 @@ describe('Redoc components', () => { builder.createAsync(TestApp).then(fixture => { let component = getChildDebugElement(fixture.debugElement, 'redoc').componentInstance; expect(component).not.toBeNull(); + fixture.destroy(); done(); }, err => done.fail(err)); }); @@ -37,6 +38,7 @@ describe('Redoc components', () => { it('should init components tree without errors', (done) => { builder.createAsync(TestApp).then(fixture => { (() => fixture.detectChanges()).should.not.throw(); + fixture.destroy(); done(); }, err => done.fail(err)); });