From e36edfdb3fd4709358a5f499f13cfe3d53c2b4f7 Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Wed, 6 Mar 2019 22:39:50 +0100 Subject: Testing refactor (denoland/deno_std#240) Original: https://github.com/denoland/deno_std/commit/e1d5c00279132aa639030c6c6d9b4e308bd4775e --- flags/tests/long.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'flags/tests/long.ts') diff --git a/flags/tests/long.ts b/flags/tests/long.ts index 9ea7df471..a67febe19 100755 --- a/flags/tests/long.ts +++ b/flags/tests/long.ts @@ -1,17 +1,18 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import { test, assertEqual } from "../../testing/mod.ts"; +import { test } from "../../testing/mod.ts"; +import { assertEq } from "../../testing/asserts.ts"; import { parse } from "../mod.ts"; test(function longOpts() { - assertEqual(parse(["--bool"]), { bool: true, _: [] }); - assertEqual(parse(["--pow", "xixxle"]), { pow: "xixxle", _: [] }); - assertEqual(parse(["--pow=xixxle"]), { pow: "xixxle", _: [] }); - assertEqual(parse(["--host", "localhost", "--port", "555"]), { + assertEq(parse(["--bool"]), { bool: true, _: [] }); + assertEq(parse(["--pow", "xixxle"]), { pow: "xixxle", _: [] }); + assertEq(parse(["--pow=xixxle"]), { pow: "xixxle", _: [] }); + assertEq(parse(["--host", "localhost", "--port", "555"]), { host: "localhost", port: 555, _: [] }); - assertEqual(parse(["--host=localhost", "--port=555"]), { + assertEq(parse(["--host=localhost", "--port=555"]), { host: "localhost", port: 555, _: [] -- cgit v1.2.3