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/fs/eol_test.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'std/fs/eol_test.ts') diff --git a/std/fs/eol_test.ts b/std/fs/eol_test.ts index 92306ce6b..aa2dcf395 100644 --- a/std/fs/eol_test.ts +++ b/std/fs/eol_test.ts @@ -1,5 +1,4 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { test } from "../testing/mod.ts"; import { assertEquals } from "../testing/asserts.ts"; import { format, detect, EOL } from "./eol.ts"; @@ -9,28 +8,28 @@ const Mixedinput2 = "deno\r\nis not\nnode"; const LFinput = "deno\nis not\nnode"; const NoNLinput = "deno is not node"; -test({ +Deno.test({ name: "[EOL] Detect CR LF", fn(): void { assertEquals(detect(CRLFinput), EOL.CRLF); } }); -test({ +Deno.test({ name: "[EOL] Detect LF", fn(): void { assertEquals(detect(LFinput), EOL.LF); } }); -test({ +Deno.test({ name: "[EOL] Detect No New Line", fn(): void { assertEquals(detect(NoNLinput), null); } }); -test({ +Deno.test({ name: "[EOL] Detect Mixed", fn(): void { assertEquals(detect(Mixedinput), EOL.CRLF); @@ -38,7 +37,7 @@ test({ } }); -test({ +Deno.test({ name: "[EOL] Format", fn(): void { assertEquals(format(CRLFinput, EOL.LF), LFinput); -- cgit v1.2.3