Skip to content

Commit

Permalink
improve(test): use import.meta.resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
erfanium committed Jul 23, 2022
1 parent 10dfb07 commit eb916a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cases/07_worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Deno.test({
name: "WORKER: Deno does not throw when deno_mongo is imported in worker",
fn: async () => {
const importWorker = new Worker(
new URL("import_worker.ts", import.meta.url).href,
import.meta.resolve("./import_worker.ts"),
{ type: "module" },
);
const p = deferred<string>();
Expand Down

0 comments on commit eb916a4

Please sign in to comment.