mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00
Fix date mocking
Close #9599 It's an interesting bug, the time we store in the snapshot is in the summertime when you run it in wintertime, it fails.
This commit is contained in:
parent
30fe88d4bd
commit
c5fc656ec8
@ -87,7 +87,7 @@ const App = () => (
|
||||
|
||||
describe('Locale Provider', () => {
|
||||
beforeAll(() => {
|
||||
MockDate.set(moment('2017-09-18T03:30:07.795Z').valueOf() + (new Date().getTimezoneOffset() * 60 * 1000));
|
||||
MockDate.set(moment('2017-09-18T03:30:07.795'));
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user