mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Ivy compatible test modules (#5718)
* ivy compatible core unit tests * ivy compatible content tests * ivy compatible process tests * ivy compatible process cloud tests * ivy compatible insights tests * fix content test * fix content test
This commit is contained in:
@@ -19,13 +19,13 @@ import { TestBed } from '@angular/core/testing';
|
||||
import { NodesApiService } from './nodes-api.service';
|
||||
import { setupTestBed } from '../testing/setup-test-bed';
|
||||
import { AlfrescoApiService } from './alfresco-api.service';
|
||||
import { AlfrescoApiServiceMock } from '../mock/alfresco-api.service.mock';
|
||||
import { NodeMetadata } from '../models/node-metadata.model';
|
||||
import { CoreTestingModule } from '../testing/core.testing.module';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
describe('NodesApiService', () => {
|
||||
let service: NodesApiService;
|
||||
let apiService: AlfrescoApiServiceMock;
|
||||
let apiService: AlfrescoApiService;
|
||||
|
||||
const MODEL_NAMESPACE = 'activitiForms';
|
||||
const responseBody = {
|
||||
@@ -50,10 +50,8 @@ describe('NodesApiService', () => {
|
||||
|
||||
setupTestBed({
|
||||
imports: [
|
||||
TranslateModule.forRoot(),
|
||||
CoreTestingModule
|
||||
],
|
||||
providers: [
|
||||
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock }
|
||||
]
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user