mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Fix item opertation test issue
This commit is contained in:
@@ -4,11 +4,11 @@ import {ItemOperationComponent} from './item-operation.component';
|
||||
import {TranslateModule} from '@ngx-translate/core';
|
||||
import {By} from '@angular/platform-browser';
|
||||
|
||||
const itemOperation: ItemOperation = new ItemOperation('key1', 'url1');
|
||||
|
||||
let fixture;
|
||||
let comp;
|
||||
describe('ItemOperationComponent', () => {
|
||||
let itemOperation: ItemOperation;
|
||||
|
||||
let fixture;
|
||||
let comp;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
@@ -19,6 +19,8 @@ describe('ItemOperationComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
itemOperation = new ItemOperation('key1', 'url1');
|
||||
|
||||
fixture = TestBed.createComponent(ItemOperationComponent);
|
||||
comp = fixture.componentInstance;
|
||||
comp.operation = itemOperation;
|
||||
|
Reference in New Issue
Block a user