#272 Update 'viewer' test config

This commit is contained in:
Denys Vuika
2016-06-24 10:49:44 +01:00
parent 12007e8b64
commit 0895106441
2 changed files with 17 additions and 7 deletions

View File

@@ -15,20 +15,15 @@
* limitations under the License.
*/
import { describe, expect, it, inject, setBaseTestProviders } from '@angular/core/testing';
import { describe, expect, it, inject } from '@angular/core/testing';
import { TestComponentBuilder } from '@angular/compiler/testing';
import {
TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,
TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS
} from '@angular/platform-browser-dynamic/testing';
import { PdfViewerComponent } from './pdfViewer.component';
import { PDFJSmock } from './assets/PDFJS.mock';
import { PDFViewermock } from './assets/PDFViewer.mock';
import { EventMock } from './assets/event.mock';
describe('PdfViewer', () => {
setBaseTestProviders(TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,
TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS);
describe('View', () => {
it('Canvas should be present', inject([TestComponentBuilder], (tcb: TestComponentBuilder) => {