mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-16 18:00:33 +03:00
Destroy redoc to unbind side-menu handlers
This commit is contained in:
parent
6276a2cd55
commit
8c30bf90c9
|
@ -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));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user