Migrate from Jest to node:test (#115)

This commit is contained in:
Andras Schmelczer 2025-08-30 10:38:08 +01:00 committed by GitHub
parent d33f80cca6
commit 0ff3bb5967
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 759 additions and 6421 deletions

View file

@ -1,3 +1,5 @@
import { describe, it } from "node:test";
import assert from "node:assert";
import { randomCasing } from "./random-casing";
describe("randomCasing", () => {
@ -5,7 +7,7 @@ describe("randomCasing", () => {
const input =
"hello, this is a really long string with a lot of characters";
const result = randomCasing(input);
expect(result.toLowerCase()).toBe(input.toLowerCase());
expect(result).not.toBe(input);
assert.strictEqual(result.toLowerCase(), input.toLowerCase());
assert.notStrictEqual(result, input);
});
});