mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Test fixes
This commit is contained in:
@@ -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) {
|
||||||
|
@@ -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';
|
||||||
|
@@ -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);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user