diff --git a/tests/020-test-sync-timeoffs.mjs b/tests/020-test-sync-timeoffs.mjs index 67fc501..fbcef34 100644 --- a/tests/020-test-sync-timeoffs.mjs +++ b/tests/020-test-sync-timeoffs.mjs @@ -1,8 +1,12 @@ import assert from 'node:assert/strict'; -import {generatePersonioTimeOffPayload_} from '../sync-timeoffs/SyncTimeOffs.js'; - +import fs from 'fs'; const {PeopleTime} = (await import('../lib-output/lib.js')).default; +eval(fs.readFileSync('sync-timeoffs/SyncTimeOffs.js')+''); + +console.log("keys 1: ", typeof generatePersonioTimeOffPayload_); +console.log("keys 2: ", typeof PROPERTY_PREFIX); + // 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"}],