blob: a93cbfebe5a5460136bab9ee6cb15a63fe983eb4 (
plain)
1
2
3
4
5
6
7
8
9
|
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { assert, assertEquals, unitTest } from "./test_util.ts";
unitTest(function testDomError() {
const de = new DOMException("foo", "bar");
assert(de);
assertEquals(de.message, "foo");
assertEquals(de.name, "bar");
});
|