Skip to content

Commit

Permalink
adjust test send transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Dec 17, 2024
1 parent 81a661f commit 6d3b6c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ describe("/send/:txnId", () => {
expect(resp.status).toBe(200);
expect(data).toHaveProperty("pdus");
expect(data.pdus).toStrictEqual({
[`$${id}:synapse2`]: {},
[id]: {},
});
});

Expand Down Expand Up @@ -297,7 +297,7 @@ describe("/send/:txnId using real case", () => {
expect(resp.status).toBe(200);
expect(data).toHaveProperty("pdus");
expect(data.pdus).toStrictEqual({
[`$${id}:${request.pdus[0].origin}`]: {},
[`${id}`]: {},
});
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export const sendTransactionRoute = new Elysia().put(
return true;
}))
) {
resultPDUs[`$${generateId(pdu)}:${pdu.origin}`] = {};
resultPDUs[`${generateId(pdu)}`] = {};
}
}
}
Expand Down

0 comments on commit 6d3b6c6

Please sign in to comment.