Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
William-De71 committed Nov 10, 2024
1 parent 446987d commit 75fe030
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/test/services/free-mobile/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 75fe030

Please sign in to comment.