Skip to content
Snippets Groups Projects
Unverified Commit 51fb7f36 authored by Łukasz Łopatowski's avatar Łukasz Łopatowski Committed by GitHub
Browse files

Merge pull request #62 from nmaas-platform/57-allow-domain-removal

fix tests
parents 717bf665 b9de6d00
Branches
Tags
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