mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
remove unused dependencies
This commit is contained in:
@@ -19,8 +19,6 @@ import {it, describe} from '@angular/core/testing';
|
|||||||
import {ReflectiveInjector, provide} from '@angular/core';
|
import {ReflectiveInjector, provide} from '@angular/core';
|
||||||
import {AlfrescoSettingsService} from './AlfrescoSettings.service';
|
import {AlfrescoSettingsService} from './AlfrescoSettings.service';
|
||||||
import {AlfrescoAuthenticationService} from './AlfrescoAuthentication.service';
|
import {AlfrescoAuthenticationService} from './AlfrescoAuthentication.service';
|
||||||
import {XHRBackend, HTTP_PROVIDERS} from '@angular/http';
|
|
||||||
import {MockBackend} from '@angular/http/testing';
|
|
||||||
|
|
||||||
declare var AlfrescoApi: any;
|
declare var AlfrescoApi: any;
|
||||||
|
|
||||||
@@ -60,8 +58,6 @@ describe('AlfrescoAuthentication', () => {
|
|||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
injector = ReflectiveInjector.resolveAndCreate([
|
injector = ReflectiveInjector.resolveAndCreate([
|
||||||
HTTP_PROVIDERS,
|
|
||||||
provide(XHRBackend, {useClass: MockBackend}),
|
|
||||||
provide(AlfrescoSettingsService, {useClass: AlfrescoSettingsService}),
|
provide(AlfrescoSettingsService, {useClass: AlfrescoSettingsService}),
|
||||||
AlfrescoAuthenticationService
|
AlfrescoAuthenticationService
|
||||||
]);
|
]);
|
||||||
|
@@ -20,7 +20,6 @@ import {ReflectiveInjector} from '@angular/core';
|
|||||||
import {AlfrescoSettingsService} from './AlfrescoSettings.service';
|
import {AlfrescoSettingsService} from './AlfrescoSettings.service';
|
||||||
import {AlfrescoAuthenticationService} from './AlfrescoAuthentication.service';
|
import {AlfrescoAuthenticationService} from './AlfrescoAuthentication.service';
|
||||||
import {AlfrescoContentService} from './AlfrescoContent.service';
|
import {AlfrescoContentService} from './AlfrescoContent.service';
|
||||||
import {HTTP_PROVIDERS} from '@angular/http';
|
|
||||||
|
|
||||||
describe('AlfrescoContentService', () => {
|
describe('AlfrescoContentService', () => {
|
||||||
|
|
||||||
@@ -30,7 +29,6 @@ describe('AlfrescoContentService', () => {
|
|||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
injector = ReflectiveInjector.resolveAndCreate([
|
injector = ReflectiveInjector.resolveAndCreate([
|
||||||
HTTP_PROVIDERS,
|
|
||||||
AlfrescoContentService,
|
AlfrescoContentService,
|
||||||
AlfrescoAuthenticationService,
|
AlfrescoAuthenticationService,
|
||||||
AlfrescoSettingsService
|
AlfrescoSettingsService
|
||||||
|
@@ -23,9 +23,8 @@ import {PDFJSmock} from './assets/PDFJS.mock';
|
|||||||
import {PDFViewermock} from './assets/PDFViewer.mock';
|
import {PDFViewermock} from './assets/PDFViewer.mock';
|
||||||
import {EventMock} from './assets/event.mock';
|
import {EventMock} from './assets/event.mock';
|
||||||
|
|
||||||
import {HTTP_PROVIDERS} from '@angular/http';
|
import { AlfrescoSettingsServiceMock } from '../src/assets/AlfrescoSettingsService.service.mock';
|
||||||
import {AlfrescoSettingsServiceMock} from '../src/assets/AlfrescoSettingsService.service.mock';
|
import { AlfrescoAuthenticationService, AlfrescoSettingsService } from 'ng2-alfresco-core';
|
||||||
import {AlfrescoAuthenticationService, AlfrescoSettingsService} from 'ng2-alfresco-core';
|
|
||||||
|
|
||||||
describe('PdfViewer', () => {
|
describe('PdfViewer', () => {
|
||||||
|
|
||||||
@@ -34,9 +33,8 @@ describe('PdfViewer', () => {
|
|||||||
|
|
||||||
beforeEachProviders(() => {
|
beforeEachProviders(() => {
|
||||||
return [
|
return [
|
||||||
HTTP_PROVIDERS,
|
|
||||||
{provide: AlfrescoSettingsService, useClass: AlfrescoSettingsServiceMock},
|
{provide: AlfrescoSettingsService, useClass: AlfrescoSettingsServiceMock},
|
||||||
{provide: AlfrescoAuthenticationService, useClass: AlfrescoAuthenticationService}
|
AlfrescoAuthenticationService
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -19,7 +19,6 @@ import { describe, expect, it, inject, beforeEachProviders } from '@angular/core
|
|||||||
import { TestComponentBuilder } from '@angular/compiler/testing';
|
import { TestComponentBuilder } from '@angular/compiler/testing';
|
||||||
import { ViewerComponent } from './viewer.component';
|
import { ViewerComponent } from './viewer.component';
|
||||||
import { EventMock } from './assets/event.mock';
|
import { EventMock } from './assets/event.mock';
|
||||||
import { HTTP_PROVIDERS } from '@angular/http';
|
|
||||||
import { AlfrescoSettingsServiceMock } from '../src/assets/AlfrescoSettingsService.service.mock';
|
import { AlfrescoSettingsServiceMock } from '../src/assets/AlfrescoSettingsService.service.mock';
|
||||||
import { AlfrescoAuthenticationService, AlfrescoSettingsService } from 'ng2-alfresco-core';
|
import { AlfrescoAuthenticationService, AlfrescoSettingsService } from 'ng2-alfresco-core';
|
||||||
|
|
||||||
@@ -27,9 +26,8 @@ import { AlfrescoAuthenticationService, AlfrescoSettingsService } from 'ng2-alfr
|
|||||||
|
|
||||||
beforeEachProviders(() => {
|
beforeEachProviders(() => {
|
||||||
return [
|
return [
|
||||||
HTTP_PROVIDERS,
|
|
||||||
{provide: AlfrescoSettingsService, useClass: AlfrescoSettingsServiceMock},
|
{provide: AlfrescoSettingsService, useClass: AlfrescoSettingsServiceMock},
|
||||||
{provide: AlfrescoAuthenticationService, useClass: AlfrescoAuthenticationService}
|
AlfrescoAuthenticationService
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -19,7 +19,6 @@ import { describe, expect, it, inject, beforeEachProviders, beforeEach, afterEac
|
|||||||
import { TestComponentBuilder } from '@angular/compiler/testing';
|
import { TestComponentBuilder } from '@angular/compiler/testing';
|
||||||
import { WebscriptComponent } from '../src/webscript.component';
|
import { WebscriptComponent } from '../src/webscript.component';
|
||||||
import { AlfrescoSettingsServiceMock } from '../src/assets/AlfrescoSettingsService.service.mock';
|
import { AlfrescoSettingsServiceMock } from '../src/assets/AlfrescoSettingsService.service.mock';
|
||||||
import { HTTP_PROVIDERS } from '@angular/http';
|
|
||||||
|
|
||||||
import { AlfrescoAuthenticationService, AlfrescoSettingsService } from 'ng2-alfresco-core';
|
import { AlfrescoAuthenticationService, AlfrescoSettingsService } from 'ng2-alfresco-core';
|
||||||
|
|
||||||
@@ -31,9 +30,8 @@ describe('Test ng2-alfresco-webscript', () => {
|
|||||||
|
|
||||||
beforeEachProviders(() => {
|
beforeEachProviders(() => {
|
||||||
return [
|
return [
|
||||||
HTTP_PROVIDERS,
|
|
||||||
{provide: AlfrescoSettingsService, useClass: AlfrescoSettingsServiceMock},
|
{provide: AlfrescoSettingsService, useClass: AlfrescoSettingsServiceMock},
|
||||||
{provide: AlfrescoAuthenticationService, useClass: AlfrescoAuthenticationService}
|
AlfrescoAuthenticationService
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user