mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
fix(jest): using UTC mock date (#11079)
This commit is contained in:
@@ -28,7 +28,7 @@ import ControlHeader from 'src/explore/components/ControlHeader';
|
||||
|
||||
// Mock moment.js to use a specific date
|
||||
jest.mock('moment', () => {
|
||||
const testDate = new Date('09/07/2020');
|
||||
const testDate = new Date('2020-09-07');
|
||||
|
||||
return () => jest.requireActual('moment')(testDate);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user