summaryrefslogtreecommitdiff
path: root/std/examples/tests
diff options
context:
space:
mode:
Diffstat (limited to 'std/examples/tests')
-rw-r--r--std/examples/tests/xeval_test.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/std/examples/tests/xeval_test.ts b/std/examples/tests/xeval_test.ts
index 1c4be1f95..bfd66c097 100644
--- a/std/examples/tests/xeval_test.ts
+++ b/std/examples/tests/xeval_test.ts
@@ -6,16 +6,15 @@ import {
assertStrContains,
assert
} from "../../testing/asserts.ts";
-import { test } from "../../testing/mod.ts";
const { execPath, run } = Deno;
-test(async function xevalSuccess(): Promise<void> {
+Deno.test(async function xevalSuccess(): Promise<void> {
const chunks: string[] = [];
await xeval(stringsReader("a\nb\nc"), ($): number => chunks.push($));
assertEquals(chunks, ["a", "b", "c"]);
});
-test(async function xevalDelimiter(): Promise<void> {
+Deno.test(async function xevalDelimiter(): Promise<void> {
const chunks: string[] = [];
await xeval(stringsReader("!MADMADAMADAM!"), ($): number => chunks.push($), {
delimiter: "MADAM"
@@ -26,7 +25,7 @@ test(async function xevalDelimiter(): Promise<void> {
// https://github.com/denoland/deno/issues/2861
const xevalPath = "examples/xeval.ts";
-test(async function xevalCliReplvar(): Promise<void> {
+Deno.test(async function xevalCliReplvar(): Promise<void> {
const p = run({
args: [execPath(), xevalPath, "--", "--replvar=abc", "console.log(abc)"],
stdin: "piped",
@@ -40,7 +39,7 @@ test(async function xevalCliReplvar(): Promise<void> {
assertEquals(decode(await p.output()).trimEnd(), "hello");
});
-test(async function xevalCliSyntaxError(): Promise<void> {
+Deno.test(async function xevalCliSyntaxError(): Promise<void> {
const p = run({
args: [execPath(), xevalPath, "--", "("],
stdin: "null",