1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 10:54:44 +00:00

feat(configs/oxlint): add linter

This commit is contained in:
2026-02-14 22:49:47 +07:00
parent 2a5412c3b8
commit 49b9f2aa79
98 changed files with 1236 additions and 201 deletions

View File

@@ -46,13 +46,13 @@ describe('clamp', () => {
it('handle NaN and Infinity', () => {
// value is NaN
expect(clamp(NaN, 0, 100)).toBe(NaN);
expect(clamp(Number.NaN, 0, 100)).toBe(Number.NaN);
// min is NaN
expect(clamp(50, NaN, 100)).toBe(NaN);
expect(clamp(50, Number.NaN, 100)).toBe(Number.NaN);
// max is NaN
expect(clamp(50, 0, NaN)).toBe(NaN);
expect(clamp(50, 0, Number.NaN)).toBe(Number.NaN);
// value is Infinity
expect(clamp(Infinity, 0, 100)).toBe(100);