Fix item opertation test issue

This commit is contained in:
Yana De Pauw
2018-12-06 15:59:45 +01:00
parent a698b56ae8
commit e2420c56d3

View File

@@ -4,11 +4,11 @@ import {ItemOperationComponent} from './item-operation.component';
import {TranslateModule} from '@ngx-translate/core'; import {TranslateModule} from '@ngx-translate/core';
import {By} from '@angular/platform-browser'; import {By} from '@angular/platform-browser';
const itemOperation: ItemOperation = new ItemOperation('key1', 'url1');
let fixture;
let comp;
describe('ItemOperationComponent', () => { describe('ItemOperationComponent', () => {
let itemOperation: ItemOperation;
let fixture;
let comp;
beforeEach(async(() => { beforeEach(async(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
@@ -19,6 +19,8 @@ describe('ItemOperationComponent', () => {
beforeEach(() => { beforeEach(() => {
itemOperation = new ItemOperation('key1', 'url1');
fixture = TestBed.createComponent(ItemOperationComponent); fixture = TestBed.createComponent(ItemOperationComponent);
comp = fixture.componentInstance; comp = fixture.componentInstance;
comp.operation = itemOperation; comp.operation = itemOperation;