mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +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,16 +19,18 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { CoreTestingModule } from '../../testing/core.testing.module';
|
||||
import { setupTestBed } from '../../testing/setup-test-bed';
|
||||
import { AboutApplicationModulesComponent } from './about-application-modules.component';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
import { DataTableModule } from '../../datatable/datatable.module';
|
||||
import { mockDependencies, mockPlugins } from '../about.mock';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
describe('AboutApplicationModulesComponent', () => {
|
||||
let fixture: ComponentFixture<AboutApplicationModulesComponent>;
|
||||
let component: AboutApplicationModulesComponent;
|
||||
|
||||
setupTestBed({
|
||||
imports: [CoreTestingModule, MatTableModule, DataTableModule]
|
||||
imports: [
|
||||
TranslateModule.forRoot(),
|
||||
CoreTestingModule
|
||||
]
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
|
@@ -20,13 +20,17 @@ import { CoreTestingModule } from '../../testing/core.testing.module';
|
||||
import { setupTestBed } from '../../testing/setup-test-bed';
|
||||
import { AboutGithubLinkComponent } from './about-github-link.component';
|
||||
import { aboutGithubDetails } from '../about.mock';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
describe('AboutGithubLinkComponent', () => {
|
||||
let fixture: ComponentFixture<AboutGithubLinkComponent>;
|
||||
let component: AboutGithubLinkComponent;
|
||||
|
||||
setupTestBed({
|
||||
imports: [CoreTestingModule]
|
||||
imports: [
|
||||
TranslateModule.forRoot(),
|
||||
CoreTestingModule
|
||||
]
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
|
@@ -22,9 +22,8 @@ import { AboutProductVersionComponent } from './about-product-version.component'
|
||||
import { DiscoveryApiService } from '../../services/discovery-api.service';
|
||||
import { AuthenticationService } from '../../services/authentication.service';
|
||||
import { of } from 'rxjs';
|
||||
import { DataTableModule } from '../../datatable/datatable.module';
|
||||
import { MatCardModule } from '@angular/material';
|
||||
import { aboutAPSMockDetails, mockModules } from '../about.mock';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
describe('AboutProductVersionComponent', () => {
|
||||
let fixture: ComponentFixture<AboutProductVersionComponent>;
|
||||
@@ -32,7 +31,10 @@ describe('AboutProductVersionComponent', () => {
|
||||
let discoveryApiService: DiscoveryApiService;
|
||||
|
||||
setupTestBed({
|
||||
imports: [CoreTestingModule, DataTableModule, MatCardModule]
|
||||
imports: [
|
||||
TranslateModule.forRoot(),
|
||||
CoreTestingModule
|
||||
]
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
|
@@ -21,6 +21,7 @@ import { setupTestBed } from '../../testing/setup-test-bed';
|
||||
import { AboutServerSettingsComponent } from './about-server-settings.component';
|
||||
import { AppConfigService } from '../../app-config/app-config.service';
|
||||
import { aboutGithubDetails } from '../about.mock';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
describe('AboutServerSettingsComponent', () => {
|
||||
let fixture: ComponentFixture<AboutServerSettingsComponent>;
|
||||
@@ -28,7 +29,10 @@ describe('AboutServerSettingsComponent', () => {
|
||||
let appConfigService: AppConfigService;
|
||||
|
||||
setupTestBed({
|
||||
imports: [CoreTestingModule]
|
||||
imports: [
|
||||
TranslateModule.forRoot(),
|
||||
CoreTestingModule
|
||||
]
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
|
Reference in New Issue
Block a user