mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
Fixed wrong referral to core in upload service tests (#2077)
* Fixed wrong referral to core in upload service tests
This commit is contained in:
parent
8b87ef0a21
commit
160d73cee3
@ -17,7 +17,12 @@
|
|||||||
|
|
||||||
import { EventEmitter } from '@angular/core';
|
import { EventEmitter } from '@angular/core';
|
||||||
import { TestBed } from '@angular/core/testing';
|
import { TestBed } from '@angular/core/testing';
|
||||||
import { AppConfigModule, CoreModule, FileModel, FileUploadOptions } from 'ng2-alfresco-core';
|
import { FileModel, FileUploadOptions } from '../models/file.model';
|
||||||
|
import { AlfrescoApiService } from './alfresco-api.service';
|
||||||
|
import { AlfrescoAuthenticationService } from './alfresco-authentication.service';
|
||||||
|
import { AlfrescoSettingsService } from './alfresco-settings.service';
|
||||||
|
import { AppConfigModule } from './app-config.service';
|
||||||
|
import { StorageService } from './storage.service';
|
||||||
import { UploadService } from './upload.service';
|
import { UploadService } from './upload.service';
|
||||||
|
|
||||||
declare let jasmine: any;
|
declare let jasmine: any;
|
||||||
@ -28,7 +33,6 @@ describe('UploadService', () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [
|
imports: [
|
||||||
CoreModule.forRoot(),
|
|
||||||
AppConfigModule.forRoot('app.config.json', {
|
AppConfigModule.forRoot('app.config.json', {
|
||||||
ecmHost: 'http://localhost:9876/ecm',
|
ecmHost: 'http://localhost:9876/ecm',
|
||||||
files: {
|
files: {
|
||||||
@ -37,7 +41,11 @@ describe('UploadService', () => {
|
|||||||
})
|
})
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
UploadService
|
UploadService,
|
||||||
|
AlfrescoApiService,
|
||||||
|
AlfrescoSettingsService,
|
||||||
|
AlfrescoAuthenticationService,
|
||||||
|
StorageService
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
service = TestBed.get(UploadService);
|
service = TestBed.get(UploadService);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user