mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 18:43:43 +03:00
Remove some unused declarations
This commit is contained in:
parent
7d9503d67d
commit
370b164b5f
|
@ -10,7 +10,6 @@ import {
|
|||
TestBed
|
||||
} from '@angular/core/testing';
|
||||
|
||||
import { ApiInfo } from './api-info';
|
||||
import { SpecManager } from '../../utils/spec-manager';
|
||||
|
||||
describe('Redoc components', () => {
|
||||
|
|
|
@ -9,7 +9,6 @@ import {
|
|||
TestBed
|
||||
} from '@angular/core/testing';
|
||||
|
||||
import { ApiLogo } from './api-logo';
|
||||
import { SpecManager } from '../../utils/spec-manager';
|
||||
|
||||
|
||||
|
|
|
@ -20,9 +20,6 @@ describe('Redoc components', () => {
|
|||
let component;
|
||||
let fixture;
|
||||
|
||||
beforeEach(inject([TestBed], (tcb) => {
|
||||
|
||||
}));
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(TestAppComponent);
|
||||
let debugEl = getChildDebugElement(fixture.debugElement, 'json-schema-lazy');
|
||||
|
|
|
@ -8,8 +8,6 @@ import {
|
|||
|
||||
import { getChildDebugElement } from '../../../tests/helpers';
|
||||
|
||||
|
||||
import { JsonSchema } from './json-schema';
|
||||
import { SpecManager } from '../../utils/spec-manager';;
|
||||
|
||||
describe('Redoc components', () => {
|
||||
|
|
|
@ -18,12 +18,12 @@ describe('Common components', () => {
|
|||
let component;
|
||||
let fixture;
|
||||
|
||||
beforeEach(inject([TestBed], (tcb) => {
|
||||
beforeEach(() => {
|
||||
|
||||
fixture = TestBed.createComponent(TestApp);
|
||||
let debugEl = getChildDebugElementByType(fixture.debugElement, StickySidebar);
|
||||
component = debugEl.injector.get(StickySidebar);
|
||||
}));
|
||||
});
|
||||
|
||||
|
||||
it('should init component', () => {
|
||||
|
|
|
@ -22,14 +22,14 @@ describe('Common components', () => {
|
|||
let fixture;
|
||||
let hostComponent;
|
||||
|
||||
beforeEach(inject([TestBed], (tcb) => {
|
||||
beforeEach(() => {
|
||||
|
||||
fixture = TestBed.createComponent(TestApp);
|
||||
hostComponent = fixture.debugElement.componentInstance;
|
||||
debugEl = getChildDebugElement(fixture.debugElement, 'tabs');
|
||||
childDebugEls = getChildDebugElementAll(debugEl, 'tab');
|
||||
component = debugEl.componentInstance;
|
||||
}));
|
||||
});
|
||||
|
||||
it('should init component', () => {
|
||||
expect(component).not.toBeNull();
|
||||
|
|
|
@ -20,12 +20,12 @@ describe('Common components', () => {
|
|||
let nativeElement;
|
||||
let fixture;
|
||||
|
||||
beforeEach(inject([TestBed], (tcb) => {
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(TestApp);
|
||||
let debugEl = getChildDebugElement(fixture.debugElement, 'zippy');
|
||||
component = debugEl.componentInstance;
|
||||
nativeElement = debugEl.nativeElement;
|
||||
}));
|
||||
});
|
||||
|
||||
it('should init component', () => {
|
||||
expect(component).not.toBeNull();
|
||||
|
|
Loading…
Reference in New Issue
Block a user