modify js date format
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2021-11-30 07:16:43 +01:00
parent 85e3b47408
commit 594f258232
1 changed files with 2 additions and 2 deletions

View File

@ -140,8 +140,8 @@ describe('Component vnWorkerTimeControl', () => {
});
it(`should set the controller date using the received timestamp`, () => {
const date = 'Wed, 31 Dec 1969 23:00:00 GMT';
const timestamp = 1;
const date = new Date(timestamp);
controller.$.model = {applyFilter: jest.fn().mockReturnValue(Promise.resolve())};
controller.$.calendar = {};
@ -149,7 +149,7 @@ describe('Component vnWorkerTimeControl', () => {
controller.$postLink();
expect(controller.date.toUTCString()).toEqual(date);
expect(controller.date.toDateString()).toEqual(date.toDateString());
});
});
});