diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-02-11 17:24:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 17:24:27 +0100 |
commit | 61273085e40fb4d992eef4b1b5601e3567c80664 (patch) | |
tree | 1ac0f401d4cb897bdb6f88e3a5c47fece2856f89 /std/encoding/csv_test.ts | |
parent | e0bcecee6042b219c6626172851af5a25362b948 (diff) |
refactor: rewrite tests in std/ to use Deno.test (#3930)
Diffstat (limited to 'std/encoding/csv_test.ts')
-rw-r--r-- | std/encoding/csv_test.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/std/encoding/csv_test.ts b/std/encoding/csv_test.ts index 6c726835e..74ba8face 100644 --- a/std/encoding/csv_test.ts +++ b/std/encoding/csv_test.ts @@ -1,6 +1,5 @@ // Test ported from Golang // https://github.com/golang/go/blob/2cc15b1/src/encoding/csv/reader_test.go -import { test, runIfMain } from "../testing/mod.ts"; import { assertEquals, assert } from "../testing/asserts.ts"; import { readMatrix, parse } from "./csv.ts"; import { StringReader } from "../io/readers.ts"; @@ -450,7 +449,7 @@ x,,, } ]; for (const t of testCases) { - test({ + Deno.test({ name: `[CSV] ${t.Name}`, async fn(): Promise<void> { let comma = ","; @@ -605,7 +604,7 @@ const parseTestCases = [ ]; for (const testCase of parseTestCases) { - test({ + Deno.test({ name: `[CSV] Parse ${testCase.name}`, async fn(): Promise<void> { const r = await parse(testCase.in, { @@ -616,5 +615,3 @@ for (const testCase of parseTestCases) { } }); } - -runIfMain(import.meta); |