Destroy redoc to unbind side-menu handlers

This commit is contained in:
Roman Hotsiy 2015-12-21 21:38:14 +02:00
parent 6276a2cd55
commit 8c30bf90c9

View File

@ -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));
});