Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Dec 5, 2023
1 parent a1bf3ad commit c69f728
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
22 changes: 21 additions & 1 deletion deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions lib/args.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { assertEquals } from "https://deno.land/[email protected]/assert/mod.ts";
import { CommonBuild, parseArgs } from "./args.ts";

Deno.test("no default features", () => {
const args = parseArgs([
"--features",
"wasm",
"--no-default-features",
"--out",
"js",
]);
assertEquals(
(args as CommonBuild).cargoFlags,
["--no-default-features", "--features", "wasm"],
);
});

0 comments on commit c69f728

Please sign in to comment.