mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-01-24 07:39:32 +00:00
Fixes failing tests
This commit is contained in:
parent
0915c9021d
commit
c0fa0c7eea
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user