mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 13:14:48 +00:00
refactor: Don't destructure the Deno namespace (#6268)
This commit is contained in:
parent
26bf56afda
commit
1fff6f55c3
111 changed files with 1632 additions and 1695 deletions
|
@ -1,14 +1,11 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
import { assert } from "../../testing/asserts.ts";
|
||||
import { mkdir, mkdirSync } from "./_fs_mkdir.ts";
|
||||
import { existsSync } from "./_fs_exists.ts";
|
||||
|
||||
const { test } = Deno;
|
||||
|
||||
const tmpDir = "./tmpdir";
|
||||
|
||||
test({
|
||||
Deno.test({
|
||||
name: "[node/fs] mkdir",
|
||||
fn: async () => {
|
||||
const result = await new Promise((resolve) => {
|
||||
|
@ -22,7 +19,7 @@ test({
|
|||
},
|
||||
});
|
||||
|
||||
test({
|
||||
Deno.test({
|
||||
name: "[node/fs] mkdirSync",
|
||||
fn: () => {
|
||||
mkdirSync(tmpDir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue