Skip to content

Commit

Permalink
chore: Remove test for turkish locale (#159)
Browse files Browse the repository at this point in the history
LC_ALL and LANG don't work with Node >v20
  • Loading branch information
jhnns authored Feb 7, 2025
1 parent 5961530 commit 6c45a99
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"build:tsc": "tsc",
"test": "run-p test:*",
"test:suite": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js",
"test:turkish": "cross-env LANG=tr npm run test:suite -- 'integration' -t 'using a Turkish locale'",
"test:lint": "eslint --max-warnings 0 --cache --ext js,ts --ignore-path .gitignore src",
"test:types": "tsc --noEmit",
"prepublishOnly": "run-s build",
Expand Down
26 changes: 0 additions & 26 deletions src/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,30 +377,4 @@ describe("Clockodo", () => {
expect(me).toHaveProperty("worktimeRegulation");
});
});

(process.env.LC_ALL === "tr" ? describe : describe.skip)(
"using a Turkish locale",
() => {
// The Turkish language has uncommon capitalization rules that
// mess with some snake_case to camelCase libraries
// See https://github.com/peerigon/clockodo/issues/74
it("transforms snake_case to camelCase correctly", async () => {
// Safety assertion that we're using the Turkish locale
expect("i".toLocaleUpperCase()).toBe("İ");

const {
entries: [firstEntry],
} = await clockodo.getEntries({
timeSince: TIME_SINCE,
timeUntil: TIME_UNTIL,
filterBillable: Billability.Billable,
});

expect(firstEntry).toMatchObject({
usersId: expect.any(Number),
customersId: expect.any(Number),
});
});
}
);
});

0 comments on commit 6c45a99

Please sign in to comment.