logos-messaging-js/packages/tests/tests/nwaku.node.spec.ts
Danish Arora d6de62a391
chore: remove relay as default when starting nwaku for tests (#1044)
* chore: redeploy

* remove: relay as default for nwaku

* address: comments

* remove relay as default and add where needed

* Update packages/tests/tests/light_push.node.spec.ts

Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>

Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
2022-12-12 11:08:08 +05:30

26 lines
586 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=127.0.0.1",
"--nat=none",
"--rpc=true",
"--relay=false",
"--rpc-admin=true",
"--websocket-support=true",
"--log-level=TRACE",
"--ports-shift=42",
];
expect(actual).to.deep.equal(expected);
});
});