From 702efd37f56f6cfc4fd438b127586ef21e3bf9eb Mon Sep 17 00:00:00 2001 From: ConjunctiveNormalForm Date: Tue, 27 Aug 2024 10:17:13 -0400 Subject: [PATCH] fix integ http return value check --- test/integ/hard-quote.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integ/hard-quote.test.ts b/test/integ/hard-quote.test.ts index d226d0a..0ab10d7 100644 --- a/test/integ/hard-quote.test.ts +++ b/test/integ/hard-quote.test.ts @@ -155,7 +155,7 @@ describe('Hard Quote endpoint integration test', function () { const { data, status } = await AxiosUtils.callPassThroughFail('POST', PARAM_API, quoteReq); console.log(data); - expect(status).to.equal(200); + expect(status).to.be.oneOf([200, 201]); expect(data.chainId).to.equal(SEPOLIA); expect(data.orderHash).to.match(/0x[0-9a-fA-F]{64}/); }); @@ -184,7 +184,7 @@ describe('Hard Quote endpoint integration test', function () { const { data, status } = await AxiosUtils.callPassThroughFail('POST', PARAM_API, quoteReq); console.log(data); - expect(status).to.equal(200); + expect(status).to.be.oneOf([200, 201]); expect(data.chainId).to.equal(SEPOLIA); expect(data.orderHash).to.match(/0x[0-9a-fA-F]{64}/); expect(data.filler).to.equal(ethers.constants.AddressZero);