Skip to content

Commit

Permalink
fix(test): mock timer timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
zojize committed Jun 20, 2024
1 parent ca67200 commit 53265df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('action', () => {
})

it('should send telemetry info to endpoint', async () => {
vi.setSystemTime(new Date(2024, 0, 1))
vi.setSystemTime(new Date('2024-01-01T00:00:00.000Z'))
const input = {
endpoint: MOCK_SERVER_ENDPOINT,
log_date: new Date().toISOString(),
Expand All @@ -37,7 +37,7 @@ describe('action', () => {
{
"assignment": "mp-mazes",
"autograding_status": "success",
"date": "2024-01-01T06:00:00.000Z",
"date": "2024-01-01T00:00:00.000Z",
"points": "21/42",
},
]
Expand Down

0 comments on commit 53265df

Please sign in to comment.