Fixes failing tests

This commit is contained in:
Aaron Louie 2020-03-20 17:22:23 -04:00
parent 0915c9021d
commit c0fa0c7eea

View File

@ -56,7 +56,7 @@ describe('EditFileMetaDialogComponent', () => {
fileType: FileType.BPMN,
};
component.data = dataBefore;
component.model = dataBefore;
component.onSubmit();
expect(closeSpy).toHaveBeenCalledWith(dataBefore);
});
@ -68,7 +68,7 @@ describe('EditFileMetaDialogComponent', () => {
fileType: FileType.BPMN,
};
component.data = dataBefore;
component.model = dataBefore;
component.onNoClick();
expect(closeSpy).toHaveBeenCalledWith();
});
@ -80,7 +80,7 @@ describe('EditFileMetaDialogComponent', () => {
fileType: FileType.BPMN,
};
component.data = dataBefore;
component.model = dataBefore;
component.onSubmit();
const expectedData: FileMetaDialogData = createClone()(dataBefore);
expectedData.fileName = 'green_eggs.v1-2020-01-01.XML.bpmn';