Skip to content

Commit 356c374

Browse files
committed
chore: fix test fixture for new redact behavior
It does not normalize the url when redacting
1 parent 80eec03 commit 356c374

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tap-snapshots/test/lib/utils/error-message.js.test.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Object {
190190
"r",
191191
"g",
192192
"s",
193-
"https://evil:***@npmjs.org/",
193+
"https://evil:***@npmjs.org",
194194
],
195195
Array [
196196
"",

test/lib/cli/entry.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ t.test('logged argv is sanitized with equals', async t => {
9696
})
9797
await cli(process)
9898

99-
t.match(logs.verbose.byTitle('argv'), ['argv "version" "--registry" "https://u:***@npmjs.org/"'])
99+
t.match(logs.verbose.byTitle('argv'), ['argv "version" "--registry" "https://u:***@npmjs.org"'])
100100
})
101101

102102
t.test('print usage if no params provided', async t => {

0 commit comments

Comments
 (0)