Skip to content

Commit e588f8b

Browse files
committed
feat(cli): add tests for password, hashed-password
1 parent 8a4ed5a commit e588f8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/node/cli.ts

+2
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,12 @@ export const parse = (
310310
throw error(`Unknown option ${arg}`)
311311
}
312312

313+
// TODO@jsjoeio add test for this if block
313314
if (key === "password" && !opts?.configFile) {
314315
throw new Error("--password can only be set in the config file or passed in via $PASSWORD")
315316
}
316317

318+
// TODO@jsjoeio add test for this if block
317319
if (key === "hashed-password" && !opts?.configFile) {
318320
throw new Error("--hashed-password can only be set in the config file or passed in via $HASHED_PASSWORD")
319321
}

0 commit comments

Comments
 (0)