diff --git a/test/api/v3/integration/payments/stripe/POST-payments_stripe_checkout.test.js b/test/api/v3/integration/payments/stripe/POST-payments_stripe_checkout.test.js index b8e4ca8631..c7ad5015b9 100644 --- a/test/api/v3/integration/payments/stripe/POST-payments_stripe_checkout.test.js +++ b/test/api/v3/integration/payments/stripe/POST-payments_stripe_checkout.test.js @@ -13,10 +13,10 @@ describe('payments - stripe - #checkout', () => { }); it('verifies credentials', async () => { - await expect(user.post(endpoint, {id: 123})).to.eventually.be.rejected.and.eql({ + await expect(user.post(endpoint, {id: 123})).to.eventually.be.rejected.and.include({ code: 401, error: 'Error', - message: 'Invalid API Key provided: ****************************1111', + message: 'Invalid API Key provided: aaaabbbb********************1111', }); });