test: remove overlapping line webhook/account cases

This commit is contained in:
Peter Steinberger
2026-02-16 07:22:30 +00:00
parent 12d6b3b0c9
commit 077130bdb8
2 changed files with 4 additions and 32 deletions

View File

@@ -176,24 +176,17 @@ describe("LINE accounts", () => {
});
describe("normalizeAccountId", () => {
it("normalizes undefined to default", () => {
it("normalizes undefined and literal default", () => {
expect(normalizeAccountId(undefined)).toBe(DEFAULT_ACCOUNT_ID);
});
it("normalizes 'default' to DEFAULT_ACCOUNT_ID", () => {
expect(normalizeAccountId("default")).toBe(DEFAULT_ACCOUNT_ID);
});
it("preserves other account ids", () => {
it("preserves non-default account ids", () => {
expect(normalizeAccountId("business")).toBe("business");
});
it("lowercases account ids", () => {
expect(normalizeAccountId("Business")).toBe("business");
});
it("trims whitespace", () => {
expect(normalizeAccountId(" business ")).toBe("business");
it("trims and lowercases account ids", () => {
expect(normalizeAccountId(" Business ")).toBe("business");
});
});
});