2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-21 15:40:35 +03:00

test: fix snapshot inconsistency due to time zone

This commit is contained in:
mengxiong10
2019-11-11 10:53:38 +08:00
parent 06e158e20e
commit 4b09eaf41e
5 changed files with 305 additions and 302 deletions
+4 -1
View File
@@ -14,7 +14,10 @@ describe('TimeRange', () => {
format: 'hh:mm a',
minuteStep: 30,
hourStep: 2,
value: [new Date(2019, 9, 4, 8, 30, 0), new Date(2019, 9, 4, 18, 30, 0)],
value: [
new Date(Date.UTC(2019, 9, 4, 8, 30, 0)),
new Date(Date.UTC(2019, 9, 4, 18, 30, 0)),
],
},
});
expect(wrapper.element).toMatchSnapshot();