From 61273085e40fb4d992eef4b1b5601e3567c80664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 11 Feb 2020 17:24:27 +0100 Subject: refactor: rewrite tests in std/ to use Deno.test (#3930) --- std/encoding/yaml/parse_test.ts | 5 ++--- std/encoding/yaml/stringify_test.ts | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'std/encoding/yaml') diff --git a/std/encoding/yaml/parse_test.ts b/std/encoding/yaml/parse_test.ts index b7b742d61..bdcd8db62 100644 --- a/std/encoding/yaml/parse_test.ts +++ b/std/encoding/yaml/parse_test.ts @@ -4,10 +4,9 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { parse, parseAll } from "./parse.ts"; -import { test } from "../../testing/mod.ts"; import { assertEquals } from "../../testing/asserts.ts"; -test({ +Deno.test({ name: "`parse` parses single document yaml string", fn(): void { const yaml = ` @@ -24,7 +23,7 @@ test({ } }); -test({ +Deno.test({ name: "`parseAll` parses the yaml string with multiple documents", fn(): void { const yaml = ` diff --git a/std/encoding/yaml/stringify_test.ts b/std/encoding/yaml/stringify_test.ts index ceedb7a3c..941beb789 100644 --- a/std/encoding/yaml/stringify_test.ts +++ b/std/encoding/yaml/stringify_test.ts @@ -3,11 +3,10 @@ // Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { test } from "../../testing/mod.ts"; import { assertEquals } from "../../testing/asserts.ts"; import { stringify } from "./stringify.ts"; -test({ +Deno.test({ name: "stringified correctly", fn(): void { const FIXTURE = { -- cgit v1.2.3