From 4007c2680122def9df7bd01e2fc26e2267bcfb55 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Mon, 20 May 2019 11:31:20 +0200 Subject: [PATCH] fix(test): fix stripe error message output --- .../payments/stripe/POST-payments_stripe_checkout.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', }); });