Resets the date.

This commit is contained in:
Aaron Louie 2020-02-11 13:22:01 -05:00
parent 60d96d5dac
commit 55b0e5b79a
1 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ describe('DiagramComponent', () => {
component.fileName = 'file name with no extension'; component.fileName = 'file name with no extension';
component.diagramType = FileType.DMN; component.diagramType = FileType.DMN;
expect((component as any).insertDateIntoFileName()).toEqual('file name with no extension_2020-02-02_20:20.dmn'); expect((component as any).insertDateIntoFileName()).toEqual('file name with no extension_2020-02-02_20:20.dmn');
MockDate.reset();
}); });
it('should create a new diagram', () => { it('should create a new diagram', () => {