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 bd357ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/020-test-sync-timeoffs.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
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;

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

// 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 bd357ba

Please sign in to comment.