js-waku/packages/tests/tests/nwaku.node.spec.ts
Danish Arora dc3774c0ed
feat: use nwaku/go-waku docker images instead of building binaries (#1259)
* 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`
2023-04-17 10:29:36 +05:30

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);
});
});