@rr0/cms
Version:
RR0 Content Management System (CMS)
14 lines (13 loc) • 461 B
JavaScript
import { describe, expect, test } from "@javarome/testscript";
import { CLI } from "./CLI.js";
describe("CLI", () => {
test("args", () => {
const cli = new CLI([
"/bin/node", "program.js", "-argString", "Hello", "-argBool", "true", "-argNum", "12"
]);
const args = cli.getArgs();
expect(args.argString).toBe("Hello");
expect(args.argBool).toBe("true");
expect(args.argNum).toBe("12");
});
});