test: merge duplicate gateway token coercion checks

This commit is contained in:
Peter Steinberger
2026-02-19 08:26:43 +00:00
parent 1481160484
commit fe3bd9d65b

View File

@@ -128,11 +128,8 @@ describe("normalizeGatewayTokenInput", () => {
expect(normalizeGatewayTokenInput(123)).toBe("");
});
it('rejects the literal string "undefined"', () => {
it('rejects literal string coercion artifacts ("undefined"/"null")', () => {
expect(normalizeGatewayTokenInput("undefined")).toBe("");
});
it('rejects the literal string "null"', () => {
expect(normalizeGatewayTokenInput("null")).toBe("");
});
});