Remove some unused declarations

This commit is contained in:
Roman Hotsiy 2016-12-02 12:10:12 +02:00
parent 7d9503d67d
commit 370b164b5f
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
7 changed files with 6 additions and 13 deletions

View File

@ -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', () => {

View File

@ -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';

View File

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

View File

@ -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', () => {

View File

@ -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', () => {

View File

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

View File

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