Test fixes

This commit is contained in:
Denys Vuika
2016-06-23 15:02:45 +01:00
committed by Will Abson
parent 65a4271b89
commit a885e1ee3b
3 changed files with 4 additions and 7 deletions

View File

@@ -19,8 +19,7 @@ import {Observable} from 'rxjs/Rx';
import { import {
AlfrescoSettingsService, AlfrescoSettingsService,
AlfrescoAuthenticationService, AlfrescoAuthenticationService
AlfrescoContentService
} from 'ng2-alfresco-core'; } from 'ng2-alfresco-core';
import {AlfrescoSearchService} from './../../src/services/alfresco-search.service'; import {AlfrescoSearchService} from './../../src/services/alfresco-search.service';
@@ -30,10 +29,9 @@ export class AlfrescoServiceMock extends AlfrescoSearchService {
constructor( constructor(
settings: AlfrescoSettingsService = null, settings: AlfrescoSettingsService = null,
authService: AlfrescoAuthenticationService = null, authService: AlfrescoAuthenticationService = null
contentService: AlfrescoContentService = null
) { ) {
super(settings, authService, contentService); super(settings, authService);
} }
getFolder(folder: string) { getFolder(folder: string) {

View File

@@ -15,7 +15,6 @@
* limitations under the License. * limitations under the License.
*/ */
import { provide } from '@angular/core';
import { it, describe, expect, inject, beforeEachProviders } from '@angular/core/testing'; import { it, describe, expect, inject, beforeEachProviders } from '@angular/core/testing';
import { TestComponentBuilder } from '@angular/compiler/testing'; import { TestComponentBuilder } from '@angular/compiler/testing';
import { RouteParams } from '@angular/router-deprecated'; import { RouteParams } from '@angular/router-deprecated';

View File

@@ -26,6 +26,6 @@ describe('AlfrescoSearchService', () => {
let service: AlfrescoSearchService; let service: AlfrescoSearchService;
beforeEach(() => { beforeEach(() => {
service = new AlfrescoSearchService(null, null, null); service = new AlfrescoSearchService(null, null);
}); });
}); });