mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04:00
9cc7e32e37
This adds an exit sanitizer to ensure that code being tested or dependencies of that code can't accidentally call "Deno.exit" leading to partial test runs and false results.
11 lines
167 B
TypeScript
11 lines
167 B
TypeScript
Deno.test("exit(0)", function () {
|
|
Deno.exit(0);
|
|
});
|
|
|
|
Deno.test("exit(1)", function () {
|
|
Deno.exit(1);
|
|
});
|
|
|
|
Deno.test("exit(2)", function () {
|
|
Deno.exit(2);
|
|
});
|