fix(tests): always use UTC timestamps in UI tests

This commit is contained in:
Łukasz Mierzwa
2019-10-05 11:31:18 +01:00
parent 68b3793ef3
commit 49325fcca5
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ beforeAll(() => {
});
beforeEach(() => {
advanceTo(new Date(2000, 1, 1, 0, 0, 0));
advanceTo(new Date(Date.UTC(2000, 1, 1, 0, 0, 0)));
alertStore = new AlertStore(["label=value"]);
fetchSpy = jest

View File

@@ -20,7 +20,7 @@ let alertStore;
let silenceFormStore;
beforeEach(() => {
advanceTo(new Date(2018, 7, 15, 20, 40, 0));
advanceTo(new Date(Date.UTC(2018, 7, 15, 20, 40, 0)));
alertStore = new AlertStore([]);
silenceFormStore = new SilenceFormStore();
});