From 273f76df41f209703fe1ba5e9e73158b9e27eb0b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 10 Dec 2024 10:21:56 +0100 Subject: [PATCH] turn anonymize to empty string --- src/tests/modules/string.test.ts | 5 ++--- src/tests/utils/commands/reminder.test.ts | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/tests/modules/string.test.ts b/src/tests/modules/string.test.ts index f2d9404..cd73a2a 100644 --- a/src/tests/modules/string.test.ts +++ b/src/tests/modules/string.test.ts @@ -29,9 +29,8 @@ describe("Capitalize", () => { }); } { - const name = ""; - it(name, () => { - assert.strictEqual(name.capitalize(), ""); + it("Empty string", () => { + assert.strictEqual("".capitalize(), ""); }); } }); diff --git a/src/tests/utils/commands/reminder.test.ts b/src/tests/utils/commands/reminder.test.ts index c81a7a3..5629d68 100644 --- a/src/tests/utils/commands/reminder.test.ts +++ b/src/tests/utils/commands/reminder.test.ts @@ -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: "" }); }); } {