test: update goose-cli redaction test to explicit sentinel

This commit is contained in:
wdawdwa committed 2026-08-23 11:46:53 +08:00
1 parent cd30a49dcc
commit 65907f4ee5
1 file changed
+3 -1
+3 -1
View File
@@ -61,7 +61,9 @@ test("process logging redacts only prompts and trusted validation commands", ()
"[goose prompt: 13 chars]" "[goose prompt: 13 chars]"
]); ]);
assert.deepEqual( assert.deepEqual(
redactProcessArgs(["run", "sh", "-lc", "npm ci && npm test"], "isolated repository validation"), redactProcessArgs(["run", "sh", "-lc", "npm ci && npm test"], "isolated repository validation", {
redactLastAsValidationCommand: true
}),
["run", "sh", "-lc", "[validation command: 18 chars]"] ["run", "sh", "-lc", "[validation command: 18 chars]"]
); );
}); });