]> Lady’s Gitweb - Pisces/blob - mod.test.js
Treat object function args more consistently
[Pisces] / mod.test.js
1 // ♓🌟 Piscēs ∷ mod.test.js
2 // ====================================================================
3 //
4 // Copyright © 2022 Lady [@ Lady’s Computer].
5 //
6 // This Source Code Form is subject to the terms of the Mozilla Public
7 // License, v. 2.0. If a copy of the MPL was not distributed with this
8 // file, You can obtain one at <https://mozilla.org/MPL/2.0/>.
9
10 import { assert, describe, it } from "./dev-deps.js";
11 import * as Piscēs from "./mod.js";
12
13 describe("Piscēs", () => {
14 it("exports everything", async () => {
15 for await (const { name, isFile } of Deno.readDir(".")) {
16 if (isFile && /(?<!^mod|\.test|(?:^|-)deps)\.js$/u.test(name)) {
17 await import(`./${name}`).then((module) => {
18 for (const exported of Object.keys(module)) {
19 assert(exported in Piscēs);
20 }
21 });
22 }
23 }
24 });
25 });
This page took 0.108048 seconds and 5 git commands to generate.