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(name, () => {
assert.strictEqual(name.capitalize(), "");
it("Empty string", () => {
assert.strictEqual("".capitalize(), "");
});
}
});

View file

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