summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
Diffstat (limited to 'io')
-rw-r--r--io/bufio_test.ts3
-rw-r--r--io/ioutil_test.ts3
-rw-r--r--io/readers_test.ts2
-rw-r--r--io/util.ts3
-rw-r--r--io/util_test.ts2
-rw-r--r--io/writers_test.ts2
6 files changed, 9 insertions, 6 deletions
diff --git a/io/bufio_test.ts b/io/bufio_test.ts
index e63f1c5c9..0a261daea 100644
--- a/io/bufio_test.ts
+++ b/io/bufio_test.ts
@@ -3,7 +3,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-import { Buffer, Reader, ReadResult } from "deno";
+const { Buffer } = Deno;
+import { Reader, ReadResult } from "deno";
import { test, assert, assertEqual } from "../testing/mod.ts";
import { BufReader, BufState, BufWriter } from "./bufio.ts";
import * as iotest from "./iotest.ts";
diff --git a/io/ioutil_test.ts b/io/ioutil_test.ts
index 2c78b2562..168aad52a 100644
--- a/io/ioutil_test.ts
+++ b/io/ioutil_test.ts
@@ -1,5 +1,6 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-import { Buffer, Reader, ReadResult } from "deno";
+const { Buffer } = Deno;
+import { Reader, ReadResult } from "deno";
import { assert, assertEqual, runTests, test } from "../testing/mod.ts";
import {
copyN,
diff --git a/io/readers_test.ts b/io/readers_test.ts
index 0bc8ca36a..8da9d6e73 100644
--- a/io/readers_test.ts
+++ b/io/readers_test.ts
@@ -1,7 +1,7 @@
+const { copy } = Deno;
import { assert, test } from "../testing/mod.ts";
import { MultiReader, StringReader } from "./readers.ts";
import { StringWriter } from "./writers.ts";
-import { copy } from "deno";
import { copyN } from "./ioutil.ts";
import { decode } from "../strings/strings.ts";
diff --git a/io/util.ts b/io/util.ts
index 954808c6c..d87776ee5 100644
--- a/io/util.ts
+++ b/io/util.ts
@@ -1,5 +1,6 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-import { Buffer, File, mkdir, open, Reader } from "deno";
+const { Buffer, mkdir, open } = Deno;
+import { File, Reader } from "deno";
import { encode } from "../strings/strings.ts";
import * as path from "../fs/path.ts";
// `off` is the offset into `dst` where it will at which to begin writing values
diff --git a/io/util_test.ts b/io/util_test.ts
index c3f134616..62cdfe533 100644
--- a/io/util_test.ts
+++ b/io/util_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
+const { remove } = Deno;
import { test, assert } from "../testing/mod.ts";
import { copyBytes, tempFile } from "./util.ts";
-import { remove } from "deno";
import * as path from "../fs/path.ts";
test(function testCopyBytes() {
diff --git a/io/writers_test.ts b/io/writers_test.ts
index 01388497c..94c58417d 100644
--- a/io/writers_test.ts
+++ b/io/writers_test.ts
@@ -1,8 +1,8 @@
+const { copy } = Deno;
import { assert, test } from "../testing/mod.ts";
import { StringWriter } from "./writers.ts";
import { StringReader } from "./readers.ts";
import { copyN } from "./ioutil.ts";
-import { copy } from "deno";
test(async function ioStringWriter() {
const w = new StringWriter("base");