deno/cli/tests/unit/worker_types.ts
2021-02-15 14:48:47 +01:00

15 lines
370 B
TypeScript

// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
import { assert, unitTest } from "./test_util.ts";
unitTest(
{ perms: { read: true } },
function utimeSyncFileSuccess() {
const w = new Worker(
new URL("../workers/worker_types.ts", import.meta.url).href,
{ type: "module" },
);
assert(w);
w.terminate();
},
);