Skip to content

Commit

Permalink
fix(jest): using UTC mock date (#11079)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie authored Sep 26, 2020
1 parent 23d62f3 commit 1493450
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ setenv =
# docker run -p 8080:8080 --name presto prestosql/presto
mysql-presto: SUPERSET__SQLALCHEMY_EXAMPLES_URI = presto://localhost:8080/memory/default
# based on https://github.com/big-data-europe/docker-hadoop
# close the repo & run docker-compose up -d to test locally
# clone the repo & run docker-compose up -d to test locally
mysql-hive: SUPERSET__SQLALCHEMY_DATABASE_URI = mysql://mysqluser:mysqluserpassword@localhost/superset?charset=utf8
mysql-hive: SUPERSET__SQLALCHEMY_EXAMPLES_URI = hive://localhost:10000/default
# make sure that directory is accessible by docker
Expand Down

0 comments on commit 1493450

Please sign in to comment.