2016-06-12 20:44:34 +03:00
|
|
|
'use strict';
|
|
|
|
|
2016-08-22 12:12:13 +03:00
|
|
|
import {TestBed} from '@angular/core/testing';
|
|
|
|
import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing';
|
|
|
|
import { OptionsService, RedocEventsService, MenuService,
|
|
|
|
ScrollService, Hash, WarningsService } from '../lib/services/index';
|
2016-07-01 15:53:16 +03:00
|
|
|
import { SpecManager } from '../lib/utils/SpecManager';
|
2016-08-22 12:12:13 +03:00
|
|
|
import { BrowserDomAdapter } from '@angular/platform-browser/src/browser/browser_adapter';
|
|
|
|
import { REDOC_PIPES } from '../lib/utils/pipes';
|
|
|
|
import { REDOC_COMMON_DIRECTIVES } from '../lib/shared/components/index';
|
|
|
|
import { REDOC_DIRECTIVES } from '../lib/components/index';
|
2016-06-12 20:44:34 +03:00
|
|
|
|
2016-08-22 12:12:13 +03:00
|
|
|
TestBed.initTestEnvironment(
|
|
|
|
BrowserDynamicTestingModule,
|
|
|
|
platformBrowserDynamicTesting()
|
|
|
|
);
|
2016-06-12 20:44:34 +03:00
|
|
|
|
2016-08-22 12:12:13 +03:00
|
|
|
beforeEach( () => {
|
|
|
|
TestBed.configureTestingModule({
|
|
|
|
providers: [
|
|
|
|
BrowserDomAdapter,
|
|
|
|
SpecManager,
|
|
|
|
BrowserDomAdapter,
|
|
|
|
RedocEventsService,
|
|
|
|
ScrollService,
|
|
|
|
Hash,
|
|
|
|
MenuService,
|
|
|
|
WarningsService,
|
|
|
|
OptionsService
|
|
|
|
],
|
|
|
|
declarations: [REDOC_PIPES, REDOC_DIRECTIVES, REDOC_COMMON_DIRECTIVES]
|
|
|
|
});
|
|
|
|
});
|