mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-05 07:13:11 +00:00
26 lines
605 B
TypeScript
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);
|
|
});
|
|
});
|