-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: separate test case which require sanitizer disabled (#628)
- Loading branch information
Showing
2 changed files
with
19 additions
and
15 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. | ||
|
||
import { assertRejects } from "jsr:@std/[email protected]"; | ||
import { doc } from "./mod.ts"; | ||
|
||
Deno.test({ | ||
name: "doc() - missing specifier", | ||
// TODO(@kitsonk) - remove when new deno_graph crate published | ||
sanitizeResources: false, | ||
async fn() { | ||
await assertRejects( | ||
async () => { | ||
await doc("https://deno.land/x/bad.ts"); | ||
}, | ||
Error, | ||
`Module not found "https://deno.land/x/bad.ts".`, | ||
); | ||
}, | ||
}); |
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