mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-10 01:33:13 +00:00
* merge: master * fix: CI * use: js script instead of shell script to run precheck and mocha * use `console.log` instead of `debug.log` for `run-tests.js`
25 lines
564 B
TypeScript
25 lines
564 B
TypeScript
import { expect } from "chai";
|
|
|
|
import { argsToArray, defaultArgs } from "../src/index.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);
|
|
});
|
|
});
|