2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-19 15:50:36 +03:00

test: fix snapshot inconsistency due to time zone

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