mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-01-29 21:33:13 +00:00
We are in the process of deprecating pubsub-topic param from nim-waku. The pubsub-topic shouldn't be used to start nim-waku and instead, a combination of 1 cluster-id plus n shard should be given. This aims to start using the new added param: shard.
28 lines
650 B
TypeScript
28 lines
650 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",
|
|
"--relay=false",
|
|
"--rest=true",
|
|
"--rest-admin=true",
|
|
"--websocket-support=true",
|
|
"--log-level=TRACE",
|
|
"--cluster-id=0",
|
|
"--shard=0",
|
|
"--ports-shift=42"
|
|
];
|
|
|
|
expect(actual).to.deep.equal(expected);
|
|
});
|
|
});
|