Skip to content

Commit 81c6f2e

Browse files
committed
test: satisfy redaction lint
1 parent 2f8c14c commit 81c6f2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/logging/redact.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe("redactSensitiveText", () => {
4848
it("masks JSON-escaped quoted env assignments while keeping the key", () => {
4949
const xai = "issue85049-xai-cleartext-token-ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
5050
const brave = "issue85049-brave-cleartext-token-ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
51-
const input = `raw_params={"command":"export XAI_API_KEY=\\\"${xai}\\\" && export BRAVE_API_KEY=\\\\\\\"${brave}\\\\\\\" && echo blocked"}`;
51+
const input = String.raw`raw_params={"command":"export XAI_API_KEY=\"${xai}\" && export BRAVE_API_KEY=\\\"${brave}\\\" && echo blocked"}`;
5252
const output = redactSensitiveText(input, {
5353
mode: "tools",
5454
patterns: defaults,

0 commit comments

Comments
 (0)