mirror of
https://github.com/waku-org/js-noise.git
synced 2025-02-23 00:18:27 +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 () {
|
||||
const dhKey = new DH25519();
|
||||
const bobPairingObj = new WakuPairing(PUBSUB_TOPIC, sender, responder, dhKey.generateKeyPair(), new ResponderParameters());
|
||||
const alicePairingObj = new WakuPairing(PUBSUB_TOPIC, sender, responder, dhKey.generateKeyPair(), bobPairingObj.getPairingInfo());
|
||||
const bobPairingObj = new WakuPairing(
|
||||
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 aliceExecP1 = alicePairingObj.execute(1000);
|
||||
@ -147,16 +159,26 @@ describe("js-noise: pairing object", () => {
|
||||
};
|
||||
|
||||
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();
|
||||
|
||||
// Confirmation is done by manually
|
||||
confirmAuthCodeFlow(bobPairingObj, true);
|
||||
|
||||
const initParameters = bobPairingObj.getPairingInfo();
|
||||
const alicePairingObj = new WakuPairing(PUBSUB_TOPIC, sender, responder, aliceStaticKey, initParameters, undefined, {
|
||||
metaSetter,
|
||||
});
|
||||
const alicePairingObj = new WakuPairing(
|
||||
PUBSUB_TOPIC,
|
||||
sender,
|
||||
responder,
|
||||
aliceStaticKey,
|
||||
initParameters,
|
||||
undefined,
|
||||
{
|
||||
metaSetter,
|
||||
}
|
||||
);
|
||||
const aliceExecP1 = alicePairingObj.execute();
|
||||
|
||||
// Confirmation is done manually
|
||||
|
Loading…
x
Reference in New Issue
Block a user