From 75fe0305075bf223b5f8ff30a03136cab856a496 Mon Sep 17 00:00:00 2001 From: William Deren Date: Sun, 10 Nov 2024 17:25:58 +0100 Subject: [PATCH] add log --- server/test/services/free-mobile/index.test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/test/services/free-mobile/index.test.js b/server/test/services/free-mobile/index.test.js index 756029112e..b26c061e8e 100644 --- a/server/test/services/free-mobile/index.test.js +++ b/server/test/services/free-mobile/index.test.js @@ -71,11 +71,16 @@ describe('free-mobile', () => { axiosPostStub.resolves({ data: 'success' }); await freeMobileService.start(); + + logger.debug('username:', await gladys.variable.getValue.firstCall.returnValue); + logger.debug('accessToken:', await gladys.variable.getValue.secondCall.returnValue); + await freeMobileService.sms.send('Hello World'); expect(axiosPostStub.calledOnce).to.equal(true); const callArgs = axiosPostStub.getCall(0).args; + logger.debug('Arguments de l’appel à axios.post:', callArgs); expect(callArgs[0]).to.equal('https://smsapi.free-mobile.fr/sendmsg'); expect(callArgs[1]).to.deep.equal({ user: 'validUsername',