Skip to content

Commit

Permalink
fix: small bugs in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andraz maier authored and AvbrehtLuka committed Dec 4, 2024
1 parent 23d6a1a commit 073f8e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("/AddressValidity/mic", () => {
it("should get abiEncodedRequest", async () => {
const payload = {
attestationType: "0x4164647265737356616c69646974790000000000000000000000000000000000",
sourceId: "0x7465737442544300000000000000000000000000000a000000000000000000000",
sourceId: "0x7465737442544300000000000000000000000000000000000000000000000000",
requestBody: {
addressStr: "moh8NxRXLq7vhvAntYi8CZ38HbGR2qqcBn"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("/ConfirmedBlockHeightExists/verifyFDC", () => {
abiEncodedRequest: "436f6e6669726d6564426c6f636b4865696768744578697374730000000000007465737442544300000000000000000000000000000000000000000000000000278ad8cc684365d1f1b0ac2e4d893ef2d604cd76f6dacdf96d13f7f37984b2a5000000000000000000000000000000000000000000000000000000000035416c0000000000000000000000000000000000000000000000000000000000000001",
}
const response = await request(app.getHttpServer())
.post("/ReferencedPaymentNonexistence/verifyFDC")
.post("/ConfirmedBlockHeightExists/verifyFDC")
.send(payload)
.set('X-API-KEY', '12345')
.expect(200)
Expand All @@ -35,7 +35,7 @@ describe("/ConfirmedBlockHeightExists/verifyFDC", () => {
abiEncodedRequest: "0X436f6e6669726d6564426c6f636b4865696768744578697374730000000000007465737442544300000000000000000000000000000000000000000000000000278ad8cc684365d1f1b0ac2e4d893ef2d604cd76f6dacdf96d13f7f37984b2a5000000000000000000000000000000000000000000000000000000000035416c0000000000000000000000000000000000000000000000000000000000000001",
}
const response = await request(app.getHttpServer())
.post("/ReferencedPaymentNonexistence/verifyFDC")
.post("/ConfirmedBlockHeightExists/verifyFDC")
.send(payload)
.set('X-API-KEY', '12345')
.expect(200)
Expand All @@ -47,7 +47,7 @@ describe("/ConfirmedBlockHeightExists/verifyFDC", () => {
const payload = {
}
await request(app.getHttpServer())
.post("/ReferencedPaymentNonexistence/verifyFDC")
.post("/ConfirmedBlockHeightExists/verifyFDC")
.send(payload)
.set('X-API-KEY', '12345')
.expect(400)
Expand All @@ -57,7 +57,7 @@ describe("/ConfirmedBlockHeightExists/verifyFDC", () => {
abiEncodedRequest: "0x436f6e6669726d6564426c6f636b4865696768744578697374730000000000007465737442544300000000000000000000000000000000000000000000000000278ad8cc684365d1f1b0ac2e4d893ef2d604cd76f6dacdf96d13f7f37984b2a5000000000000000000000000000000000000000000000000000000000035416c0000000000000000000000000000000000000000000000000000000000000001",
}
await request(app.getHttpServer())
.post("/ReferencedPaymentNonexistence/verifyFDC")
.post("/ConfirmedBlockHeightExists/verifyFDC")
.send(payload)
.set('X-API-KEY', '12345')
.expect(400)
Expand Down

0 comments on commit 073f8e2

Please sign in to comment.