mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 21:04:31 +00:00
fix: prevent undefined gateway token defaults (#4873) (thanks @Hisleren)
Co-authored-by: Hisleren <Hisleren@users.noreply.github.com>
This commit is contained in:
committed by
Gustavo Madeira Santana
parent
e5a95b5b66
commit
39eb0b7bc0
@@ -119,7 +119,7 @@ describe("normalizeGatewayTokenInput", () => {
|
||||
expect(normalizeGatewayTokenInput(" token ")).toBe("token");
|
||||
});
|
||||
|
||||
it("coerces non-string input to string", () => {
|
||||
expect(normalizeGatewayTokenInput(123)).toBe("123");
|
||||
it("returns empty string for non-string input", () => {
|
||||
expect(normalizeGatewayTokenInput(123)).toBe("");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user