1
0
mirror of https://github.com/amir20/dozzle.git synced 2026-01-03 19:45:01 +01:00
This commit is contained in:
Amir Raminfar
2020-05-22 10:54:59 -07:00
parent 237032a714
commit e66f3f5a59
2 changed files with 7 additions and 3 deletions

View File

@@ -125,8 +125,12 @@ describe("<LogEventSource />", () => {
const RealDate = Date;
beforeAll(() => {
global.Date = class extends RealDate {
constructor() {
return new RealDate("2019-06-12T10:55:42.459034602Z");
constructor(arg) {
if (arg) {
return new RealDate(arg);
} else {
return new RealDate(1560336936000);
}
}
};
});

View File

@@ -11,7 +11,7 @@
"build": "yarn webpack --mode=production",
"clean": "rm -rf static/ a_main-packr.go",
"release": "release-it",
"test": "jest",
"test": "TZ=UTC jest",
"integration": "docker-compose -f integration/docker-compose.test.yml up --build --force-recreate integration"
},
"repository": {