2676-worker_time-control add timestamp url param #809

Merged
carlosjr merged 5 commits from 2676-worker_time-control into dev 2021-11-30 08:20:22 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 594f258232 - Show all commits

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());
});
});
});