mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-02 13:53:12 +00:00
26 lines
577 B
TypeScript
26 lines
577 B
TypeScript
import { expect } from "chai";
|
|
|
|
import { argsToArray, defaultArgs } from "./nwaku";
|
|
|
|
describe("nwaku", () => {
|
|
it("Correctly serialized arguments", function () {
|
|
const args = defaultArgs();
|
|
Object.assign(args, { portsShift: 42 });
|
|
|
|
const actual = argsToArray(args);
|
|
|
|
const expected = [
|
|
"--listen-address=127.0.0.1",
|
|
"--nat=none",
|
|
"--relay=true",
|
|
"--rpc=true",
|
|
"--rpc-admin=true",
|
|
"--websocket-support=true",
|
|
"--log-level=DEBUG",
|
|
"--ports-shift=42",
|
|
];
|
|
|
|
expect(actual).to.deep.equal(expected);
|
|
});
|
|
});
|