Skip to content

Commit

Permalink
fix: SyncTimeOffs module import in test
Browse files Browse the repository at this point in the history
  • Loading branch information
lyind committed Jul 25, 2023
1 parent 027af15 commit 87b4b19
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/020-test-sync-timeoffs.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import assert from 'node:assert/strict';
import {generatePersonioTimeOffPayload_} from '../sync-timeoffs/SyncTimeOffs.js';

const {generatePersonioTimeOffPayload_} = (await import('../sync-timeoffs/SyncTimeOffs.js')).default;
const {PeopleTime} = (await import('../lib-output/lib.js')).default;

import '../sync-timeoffs/SyncTimeOffs.js';
console.log("keys: ", Object.keys(globalThis));

// test generatePersonioTimeOffPayload_
for (const [timeOffInput, expectedPayload] of [
[{startAt: PeopleTime.fromISO8601('2016-05-16T00:00:00+05:00'), endAt: PeopleTime.fromISO8601('2016-05-16T24:00:00+05:00')}, {half_day_start: "1", half_day_end: "1"}],
Expand Down

0 comments on commit 87b4b19

Please sign in to comment.