From 8ea45e27306d0369f2b2d624a174bd95e7f17395 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 20 Mar 2023 21:20:42 +0900 Subject: feat(nuldoc): add small test to xml.ts --- nuldoc-src/xml_test.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 nuldoc-src/xml_test.ts (limited to 'nuldoc-src/xml_test.ts') diff --git a/nuldoc-src/xml_test.ts b/nuldoc-src/xml_test.ts new file mode 100644 index 0000000..28e1597 --- /dev/null +++ b/nuldoc-src/xml_test.ts @@ -0,0 +1,17 @@ +import { assertEquals } from "std/testing/asserts.ts"; +import { parseXmlString } from "./xml.ts"; + +Deno.test("Parse XML", () => { + assertEquals( + "__root__", + parseXmlString( + ` + + + + + +`, + ).name, + ); +}); -- cgit v1.2.3-70-g09d2