]> Lady’s Gitweb - Pisces/blobdiff - mod.test.js
Split some object code into value and unit test
[Pisces] / mod.test.js
diff --git a/mod.test.js b/mod.test.js
new file mode 100644 (file)
index 0000000..59a7cbf
--- /dev/null
@@ -0,0 +1,25 @@
+// ♓🌟 Piscēs ∷ mod.test.js
+// ====================================================================
+//
+// Copyright © 2022 Lady [@ Lady’s Computer].
+//
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at <https://mozilla.org/MPL/2.0/>.
+
+import { assert, describe, it } from "./dev-deps.js";
+import * as Piscēs from "./mod.js";
+
+describe("Piscēs", () => {
+  it("exports everything", async () => {
+    for await (const { name, isFile } of Deno.readDir(".")) {
+      if (isFile && /(?<!^mod|\.test|(?:^|-)deps)\.js$/u.test(name)) {
+        await import(`./${name}`).then((module) => {
+          for (const exported of Object.keys(module)) {
+            assert(exported in Piscēs);
+          }
+        });
+      }
+    }
+  });
+});
This page took 0.081319 seconds and 4 git commands to generate.