mirror of
https://github.com/logos-messaging/js-noise.git
synced 2026-01-03 22:23:12 +00:00
lint
This commit is contained in:
parent
10ce3a6dee
commit
64485c8c14
@ -115,8 +115,20 @@ describe("js-noise: pairing object", () => {
|
|||||||
|
|
||||||
it("should timeout", async function () {
|
it("should timeout", async function () {
|
||||||
const dhKey = new DH25519();
|
const dhKey = new DH25519();
|
||||||
const bobPairingObj = new WakuPairing(PUBSUB_TOPIC, sender, responder, dhKey.generateKeyPair(), new ResponderParameters());
|
const bobPairingObj = new WakuPairing(
|
||||||
const alicePairingObj = new WakuPairing(PUBSUB_TOPIC, sender, responder, dhKey.generateKeyPair(), bobPairingObj.getPairingInfo());
|
PUBSUB_TOPIC,
|
||||||
|
sender,
|
||||||
|
responder,
|
||||||
|
dhKey.generateKeyPair(),
|
||||||
|
new ResponderParameters()
|
||||||
|
);
|
||||||
|
const alicePairingObj = new WakuPairing(
|
||||||
|
PUBSUB_TOPIC,
|
||||||
|
sender,
|
||||||
|
responder,
|
||||||
|
dhKey.generateKeyPair(),
|
||||||
|
bobPairingObj.getPairingInfo()
|
||||||
|
);
|
||||||
|
|
||||||
const bobExecP1 = bobPairingObj.execute(1000);
|
const bobExecP1 = bobPairingObj.execute(1000);
|
||||||
const aliceExecP1 = alicePairingObj.execute(1000);
|
const aliceExecP1 = alicePairingObj.execute(1000);
|
||||||
@ -147,16 +159,26 @@ describe("js-noise: pairing object", () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const recvParameters = new ResponderParameters();
|
const recvParameters = new ResponderParameters();
|
||||||
const bobPairingObj = new WakuPairing(PUBSUB_TOPIC, sender, responder, bobStaticKey, recvParameters, undefined, { metaSetter });
|
const bobPairingObj = new WakuPairing(PUBSUB_TOPIC, sender, responder, bobStaticKey, recvParameters, undefined, {
|
||||||
|
metaSetter,
|
||||||
|
});
|
||||||
const bobExecP1 = bobPairingObj.execute();
|
const bobExecP1 = bobPairingObj.execute();
|
||||||
|
|
||||||
// Confirmation is done by manually
|
// Confirmation is done by manually
|
||||||
confirmAuthCodeFlow(bobPairingObj, true);
|
confirmAuthCodeFlow(bobPairingObj, true);
|
||||||
|
|
||||||
const initParameters = bobPairingObj.getPairingInfo();
|
const initParameters = bobPairingObj.getPairingInfo();
|
||||||
const alicePairingObj = new WakuPairing(PUBSUB_TOPIC, sender, responder, aliceStaticKey, initParameters, undefined, {
|
const alicePairingObj = new WakuPairing(
|
||||||
metaSetter,
|
PUBSUB_TOPIC,
|
||||||
});
|
sender,
|
||||||
|
responder,
|
||||||
|
aliceStaticKey,
|
||||||
|
initParameters,
|
||||||
|
undefined,
|
||||||
|
{
|
||||||
|
metaSetter,
|
||||||
|
}
|
||||||
|
);
|
||||||
const aliceExecP1 = alicePairingObj.execute();
|
const aliceExecP1 = alicePairingObj.execute();
|
||||||
|
|
||||||
// Confirmation is done manually
|
// Confirmation is done manually
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user