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