tests: use node:test #210

Merged
Anri merged 4 commits from node-test into main 2024-12-14 11:43:10 +01:00
2 changed files with 4 additions and 6 deletions
Showing only changes of commit 273f76df41 - Show all commits

View file

@ -29,9 +29,8 @@ describe("Capitalize", () => {
}); });
} }
{ {
const name = ""; it("Empty string", () => {
it(name, () => { assert.strictEqual("".capitalize(), "");
assert.strictEqual(name.capitalize(), "");
}); });
} }
}); });

View file

@ -5,9 +5,8 @@ import assert from "node:assert/strict";
describe("Time splitter", () => { describe("Time splitter", () => {
{ {
const name = ""; it("Empty String", () => {
it(name, () => { assert.deepStrictEqual(splitTime(""), { option: OptionReminder.Nothing, time: "" });
assert.deepStrictEqual(splitTime(name), { option: OptionReminder.Nothing, time: "" });
}); });
} }
{ {