summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--std/examples/cat_test.ts (renamed from std/examples/tests/cat_test.ts)6
-rw-r--r--std/examples/catj_test.ts (renamed from std/examples/tests/catj_test.ts)6
-rw-r--r--std/examples/colors_test.ts (renamed from std/examples/tests/colors_test.ts)6
-rw-r--r--std/examples/curl_test.ts (renamed from std/examples/tests/curl_test.ts)8
-rw-r--r--std/examples/echo_server_test.ts (renamed from std/examples/tests/echo_server_test.ts)8
-rw-r--r--std/examples/test_test.ts (renamed from std/examples/tests/test_test.ts)2
-rw-r--r--std/examples/welcome_test.ts (renamed from std/examples/tests/welcome_test.ts)6
-rw-r--r--std/examples/xeval_test.ts (renamed from std/examples/tests/xeval_test.ts)12
8 files changed, 27 insertions, 27 deletions
diff --git a/std/examples/tests/cat_test.ts b/std/examples/cat_test.ts
index 3b6f0d40f..cd88d1f3d 100644
--- a/std/examples/tests/cat_test.ts
+++ b/std/examples/cat_test.ts
@@ -1,8 +1,8 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { assertStrictEquals } from "../../testing/asserts.ts";
-import { resolve, dirname, fromFileUrl } from "../../path/mod.ts";
+import { assertStrictEquals } from "../testing/asserts.ts";
+import { dirname, fromFileUrl } from "../path/mod.ts";
-const moduleDir = resolve(dirname(fromFileUrl(import.meta.url)), "..");
+const moduleDir = dirname(fromFileUrl(import.meta.url));
Deno.test("[examples/cat] print multiple files", async () => {
const decoder = new TextDecoder();
diff --git a/std/examples/tests/catj_test.ts b/std/examples/catj_test.ts
index c79403421..031a161c9 100644
--- a/std/examples/tests/catj_test.ts
+++ b/std/examples/catj_test.ts
@@ -1,8 +1,8 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { assertStrictEquals } from "../../testing/asserts.ts";
-import { resolve, dirname, fromFileUrl } from "../../path/mod.ts";
+import { assertStrictEquals } from "../testing/asserts.ts";
+import { dirname, fromFileUrl } from "../path/mod.ts";
-const moduleDir = resolve(dirname(fromFileUrl(import.meta.url)), "..");
+const moduleDir = dirname(fromFileUrl(import.meta.url));
Deno.test("[examples/catj] print an array", async () => {
const decoder = new TextDecoder();
diff --git a/std/examples/tests/colors_test.ts b/std/examples/colors_test.ts
index 91d016232..fd9aa21da 100644
--- a/std/examples/tests/colors_test.ts
+++ b/std/examples/colors_test.ts
@@ -1,8 +1,8 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { assertStrictEquals } from "../../testing/asserts.ts";
-import { resolve, dirname, fromFileUrl } from "../../path/mod.ts";
+import { assertStrictEquals } from "../testing/asserts.ts";
+import { dirname, fromFileUrl } from "../path/mod.ts";
-const moduleDir = resolve(dirname(fromFileUrl(import.meta.url)), "..");
+const moduleDir = dirname(fromFileUrl(import.meta.url));
Deno.test("[examples/colors] print a colored text", async () => {
const decoder = new TextDecoder();
diff --git a/std/examples/tests/curl_test.ts b/std/examples/curl_test.ts
index f35edab4c..63b78bff6 100644
--- a/std/examples/tests/curl_test.ts
+++ b/std/examples/curl_test.ts
@@ -1,9 +1,9 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { serve } from "../../http/server.ts";
-import { assertStrictEquals } from "../../testing/asserts.ts";
-import { resolve, dirname, fromFileUrl } from "../../path/mod.ts";
+import { serve } from "../http/server.ts";
+import { assertStrictEquals } from "../testing/asserts.ts";
+import { dirname, fromFileUrl } from "../path/mod.ts";
-const moduleDir = resolve(dirname(fromFileUrl(import.meta.url)), "..");
+const moduleDir = dirname(fromFileUrl(import.meta.url));
Deno.test({
name: "[examples/curl] send a request to a specified url",
diff --git a/std/examples/tests/echo_server_test.ts b/std/examples/echo_server_test.ts
index 6bfcbbc3d..1a5286a0e 100644
--- a/std/examples/tests/echo_server_test.ts
+++ b/std/examples/echo_server_test.ts
@@ -1,9 +1,9 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { assertStrictEquals, assertNotEquals } from "../../testing/asserts.ts";
-import { BufReader, ReadLineResult } from "../../io/bufio.ts";
-import { resolve, dirname, fromFileUrl } from "../../path/mod.ts";
+import { assertStrictEquals, assertNotEquals } from "../testing/asserts.ts";
+import { BufReader, ReadLineResult } from "../io/bufio.ts";
+import { dirname, fromFileUrl } from "../path/mod.ts";
-const moduleDir = resolve(dirname(fromFileUrl(import.meta.url)), "..");
+const moduleDir = dirname(fromFileUrl(import.meta.url));
Deno.test("[examples/echo_server]", async () => {
const encoder = new TextEncoder();
diff --git a/std/examples/tests/test_test.ts b/std/examples/test_test.ts
index 7c9527060..2c85b664e 100644
--- a/std/examples/tests/test_test.ts
+++ b/std/examples/test_test.ts
@@ -1,2 +1,2 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import "../test.ts";
+import "./test.ts";
diff --git a/std/examples/tests/welcome_test.ts b/std/examples/welcome_test.ts
index 5f8d81988..626527bca 100644
--- a/std/examples/tests/welcome_test.ts
+++ b/std/examples/welcome_test.ts
@@ -1,8 +1,8 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { assertStrictEquals } from "../../testing/asserts.ts";
-import { resolve, dirname, fromFileUrl } from "../../path/mod.ts";
+import { assertStrictEquals } from "../testing/asserts.ts";
+import { dirname, fromFileUrl } from "../path/mod.ts";
-const moduleDir = resolve(dirname(fromFileUrl(import.meta.url)), "..");
+const moduleDir = dirname(fromFileUrl(import.meta.url));
Deno.test("[examples/welcome] print a welcome message", async () => {
const decoder = new TextDecoder();
diff --git a/std/examples/tests/xeval_test.ts b/std/examples/xeval_test.ts
index d3493d397..93e664dde 100644
--- a/std/examples/tests/xeval_test.ts
+++ b/std/examples/xeval_test.ts
@@ -1,15 +1,15 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { xeval } from "../xeval.ts";
-import { StringReader } from "../../io/readers.ts";
-import { decode, encode } from "../../encoding/utf8.ts";
+import { xeval } from "./xeval.ts";
+import { StringReader } from "../io/readers.ts";
+import { decode, encode } from "../encoding/utf8.ts";
import {
assertEquals,
assertStringContains,
assert,
-} from "../../testing/asserts.ts";
-import { resolve, dirname, fromFileUrl } from "../../path/mod.ts";
+} from "../testing/asserts.ts";
+import { dirname, fromFileUrl } from "../path/mod.ts";
-const moduleDir = resolve(dirname(fromFileUrl(import.meta.url)), "..");
+const moduleDir = dirname(fromFileUrl(import.meta.url));
Deno.test("xevalSuccess", async function (): Promise<void> {
const chunks: string[] = [];