mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-01-23 02:13:14 +00:00
* changing default pubsub topic to its static sharding version * keeping RFC's Waku Message test vectors * reverting change in changelog * setting pubsub topic when creating nwaku node * adding shardInfo to runMultipleNodes call * adding shardInfo to runMultipleNodes call in lightpush tests * add pubsub topics to nwaku.start * get rid of it.only that remained * fixing compliance tests * setting clusterId to 0 * removing unnecessary fix * adding shardInfo when creating nodes * fixing wait for remote peer tests * fixing peer exchange test * refactor * removing unnecessary variable * feat: create default shard info, update tests (#2085) * feat: create default shard info, update tests * add link * fix tests * remoe only * up tests * up test --------- Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
27 lines
646 B
TypeScript
27 lines
646 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",
|
|
"--pubsub-topic=/waku/2/rs/0/0",
|
|
"--ports-shift=42"
|
|
];
|
|
|
|
expect(actual).to.deep.equal(expected);
|
|
});
|
|
});
|