-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77a713e
commit b29e1c4
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { parseArgsForLogSubcommand } from "./logs.ts"; | ||
import { assertEquals, assertThrows } from "jsr:@std/[email protected]"; | ||
import { parseArgs } from "../args.ts"; | ||
import { greaterOrEqual, parse } from "jsr:@std/[email protected]"; | ||
|
||
Deno.test("parseArgsForLogSubcommand", async (t) => { | ||
const parseHelper = (args: string[]) => { | ||
|
@@ -15,7 +16,11 @@ Deno.test("parseArgsForLogSubcommand", async (t) => { | |
// to fail unexpectedly (not sure if this is intended). To avoid this, we | ||
// set `Deno.exitCode` to 0 before giving control back to each test case. | ||
// https://github.com/denoland/deno/pull/23609 | ||
Deno.exitCode = 0; | ||
const EXIT_CODE_MIN_VERSION = parse("1.44.0"); | ||
const currentVersion = parse(Deno.version.deno); | ||
if (greaterOrEqual(currentVersion, EXIT_CODE_MIN_VERSION)) { | ||
Deno.exitCode = 0; | ||
} | ||
throw e; | ||
} | ||
}; | ||
|