Skip to content
Snippets Groups Projects
Commit b9de6d00 authored by pgiertych's avatar pgiertych
Browse files

fix tests

parent 7aaa7a89
No related branches found
No related tags found
No related merge requests found
...@@ -159,6 +159,7 @@ describe('Component: AppInstance', () => { ...@@ -159,6 +159,7 @@ describe('Component: AppInstance', () => {
name: 'domain 1', name: 'domain 1',
codename: 'dom1', codename: 'dom1',
active: true, active: true,
deleted: false,
domainDcnDetails: null, domainDcnDetails: null,
domainTechDetails: null, domainTechDetails: null,
groups: [], groups: [],
......
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RemovalConfirmationModalComponent } from './removal-confirmation-modal.component'; import { RemovalConfirmationModalComponent } from './removal-confirmation-modal.component';
import {TranslateFakeLoader, TranslateLoader, TranslateModule} from "@ngx-translate/core";
describe('RemovalConfirmationModalComponent', () => { describe('RemovalConfirmationModalComponent', () => {
let component: RemovalConfirmationModalComponent; let component: RemovalConfirmationModalComponent;
...@@ -8,7 +9,15 @@ describe('RemovalConfirmationModalComponent', () => { ...@@ -8,7 +9,15 @@ describe('RemovalConfirmationModalComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
declarations: [ RemovalConfirmationModalComponent ] declarations: [ RemovalConfirmationModalComponent ],
imports: [
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useClass: TranslateFakeLoader
}
}),
]
}) })
.compileComponents(); .compileComponents();
}); });
......
...@@ -21,6 +21,7 @@ describe('DomainFilterComponent', () => { ...@@ -21,6 +21,7 @@ describe('DomainFilterComponent', () => {
name: 'global', name: 'global',
codename: 'global', codename: 'global',
active: true, active: true,
deleted: false,
domainDcnDetails: undefined, domainDcnDetails: undefined,
domainTechDetails: undefined, domainTechDetails: undefined,
applicationStatePerDomain: [], applicationStatePerDomain: [],
...@@ -32,6 +33,7 @@ describe('DomainFilterComponent', () => { ...@@ -32,6 +33,7 @@ describe('DomainFilterComponent', () => {
name: 'domain one', name: 'domain one',
codename: 'dom-1', codename: 'dom-1',
active: true, active: true,
deleted: false,
domainDcnDetails: undefined, domainDcnDetails: undefined,
domainTechDetails: undefined, domainTechDetails: undefined,
applicationStatePerDomain: [], applicationStatePerDomain: [],
...@@ -43,6 +45,7 @@ describe('DomainFilterComponent', () => { ...@@ -43,6 +45,7 @@ describe('DomainFilterComponent', () => {
name: 'domain two', name: 'domain two',
codename: 'dom-2', codename: 'dom-2',
active: true, active: true,
deleted: false,
domainDcnDetails: undefined, domainDcnDetails: undefined,
domainTechDetails: undefined, domainTechDetails: undefined,
applicationStatePerDomain: [], applicationStatePerDomain: [],
......
...@@ -41,6 +41,7 @@ describe('AppInstallmodalComponent', () => { ...@@ -41,6 +41,7 @@ describe('AppInstallmodalComponent', () => {
name: 'domain one', name: 'domain one',
codename: 'dom-1', codename: 'dom-1',
active: true, active: true,
deleted: false,
domainDcnDetails: undefined, domainDcnDetails: undefined,
domainTechDetails: undefined, domainTechDetails: undefined,
applicationStatePerDomain: [], applicationStatePerDomain: [],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment