From 30702e2678200b6e21ba142347d2d213b86e9c6d Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 20 May 2020 17:52:51 -0400 Subject: move js unit tests to cli/tests (#5678) --- cli/tests/unit/dom_exception_test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cli/tests/unit/dom_exception_test.ts (limited to 'cli/tests/unit/dom_exception_test.ts') diff --git a/cli/tests/unit/dom_exception_test.ts b/cli/tests/unit/dom_exception_test.ts new file mode 100644 index 000000000..2eb7633e1 --- /dev/null +++ b/cli/tests/unit/dom_exception_test.ts @@ -0,0 +1,9 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. +import { unitTest, assertEquals, assert } from "./test_util.ts"; + +unitTest(function testDomError() { + const de = new DOMException("foo", "bar"); + assert(de); + assertEquals(de.message, "foo"); + assertEquals(de.name, "bar"); +}); -- cgit v1.2.3