mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-07 08:13:12 +00:00
* chore: update noise * update: package.lock * update: @chainsafe/libp2p-gossipsub * rm unwanted libp2p interface deps & bump up libp2p * refactor code for new deps * update: new package.lock * setup prettier, refactor eslint and rm trailing commas * update package.lock * fix build * import type for interface * fix imports for merge * update typedoc exports * add: CustomEvent import * use new libp2p interface * add aegir as dev dep for tests
26 lines
606 B
TypeScript
26 lines
606 B
TypeScript
import { expect } from "chai";
|
|
|
|
import { defaultArgs } from "../src/index.js";
|
|
import { argsToArray } from "../src/node/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);
|
|
});
|
|
});
|