js-waku/packages/tests/tests/nwaku.node.spec.ts
Danish Arora 2e6d9836bf
chore(tests): restructure & cleanup (#1796)
* chore: restructure folder heirrarchy

* fix: imports
2024-01-18 00:26:31 +05:30

26 lines
605 B
TypeScript

import { expect } from "chai";
import { defaultArgs } from "../src/index.js";
import { argsToArray } from "../src/lib/dockerode.js";
describe("nwaku", () => {
it("Correctly serialized arguments", function () {
const args = defaultArgs();
Object.assign(args, { portsShift: 42 });
const actual = argsToArray(args);
const expected = [
"--listen-address=0.0.0.0",
"--rpc=true",
"--relay=false",
"--rpc-admin=true",
"--websocket-support=true",
"--log-level=TRACE",
"--ports-shift=42"
];
expect(actual).to.deep.equal(expected);
});
});