Archived
1
0

Add valid values for --log

This commit is contained in:
Asher
2020-02-19 11:06:32 -06:00
parent 0263188431
commit 0e2eaa9b34
2 changed files with 23 additions and 11 deletions

View File

@ -119,9 +119,10 @@ describe("cli", () => {
assert.throws(() => parse(["--auth", "--invalid"]), /--auth requires a value/)
})
it("should error if number option is invalid", () => {
it("should error if value is invalid", () => {
assert.throws(() => parse(["--port", "foo"]), /--port must be a number/)
assert.throws(() => parse(["--auth", "invalid"]), /--auth valid values: \[password, none\]/)
assert.throws(() => parse(["--log", "invalid"]), /--log valid values: \[trace, debug, info, warn, error\]/)
})
it("should error if the option doesn't exist", () => {