Skip to content
Snippets Groups Projects
Commit e69c19fe authored by Reinder Kraaij's avatar Reinder Kraaij :eye:
Browse files

pin timezone

parent 932ccdfb
No related branches found
No related tags found
1 merge request!1267Tmss code cleanup part 4
...@@ -83,7 +83,7 @@ describe('App Search', () => { ...@@ -83,7 +83,7 @@ describe('App Search', () => {
it('renders the App component with Valid Credentials', async () => { it('renders the App component with Valid Credentials', async () => {
// Render the App component // Render the App component
jest.useFakeTimers() jest.useFakeTimers()
jest.setSystemTime(new Date('2023-08-06')); jest.setSystemTime(new Date('2023-08-06T00:00:00Z'));
MockAxiosSecurity(MakePrimaryMock()); MockAxiosSecurity(MakePrimaryMock());
await PermissionStackUtil.getPermissions(true); await PermissionStackUtil.getPermissions(true);
render(<App />); render(<App />);
......
...@@ -23,7 +23,7 @@ import { SystemEventList } from "../routes/SystemEvent/system.event.list"; ...@@ -23,7 +23,7 @@ import { SystemEventList } from "../routes/SystemEvent/system.event.list";
function MakePrimaryMock() { function MakePrimaryMock() {
jest.useFakeTimers() jest.useFakeTimers()
jest.setSystemTime(new Date('2023-08-06')); jest.setSystemTime(new Date('2023-08-06T00:00:00Z'));
let mock = new MockAdapter(axios); let mock = new MockAdapter(axios);
mock.onOptions("/api/system_event/").reply(200, systemeventoptions); mock.onOptions("/api/system_event/").reply(200, systemeventoptions);
mock.onGet("/api/system_event_template").reply(200, systemeventtemplate); mock.onGet("/api/system_event_template").reply(200, systemeventtemplate);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment