Skip to content

Commit

Permalink
Increase Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowtime2000 committed Oct 7, 2020
1 parent 9bf9f5c commit 66ff7e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mod/path_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assert } from "https://deno.land/std/testing/asserts.ts";
import { assert, assertThrows } from "https://deno.land/std/testing/asserts.ts";
import path from "./path.ts";

Deno.test({
Expand All @@ -7,5 +7,6 @@ Deno.test({
const __path = path(import.meta);
assert(!__path.startsWith("file:///"));
assert(/[\\|//]/.test(__path));
assertThrows(() => path({ url: "https://foo.bar", main: false }), Error, "You should not be using this in a hosted a script!");
},
});
});

0 comments on commit 66ff7e5

Please sign in to comment.