From a9b6dcacfe2d0d3ec098fdbfd142a08437bb9357 Mon Sep 17 00:00:00 2001 From: vicent Date: Thu, 17 Mar 2022 08:13:18 +0100 Subject: [PATCH] included sms test --- modules/client/back/methods/client/specs/sendSms.spec.js | 3 +-- modules/client/back/methods/sms/send.spec.js | 3 +-- modules/ticket/back/methods/ticket/specs/sendSms.spec.js | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/client/back/methods/client/specs/sendSms.spec.js b/modules/client/back/methods/client/specs/sendSms.spec.js index 54fe802e3..121d427ce 100644 --- a/modules/client/back/methods/client/specs/sendSms.spec.js +++ b/modules/client/back/methods/client/specs/sendSms.spec.js @@ -1,8 +1,7 @@ const models = require('vn-loopback/server/server').models; const soap = require('soap'); -// #3673 sendSms tests excluded -xdescribe('client sendSms()', () => { +describe('client sendSms()', () => { it('should now send a message and log it', async() => { spyOn(soap, 'createClientAsync').and.returnValue('a so fake client'); const tx = await models.Client.beginTransaction({}); diff --git a/modules/client/back/methods/sms/send.spec.js b/modules/client/back/methods/sms/send.spec.js index a81c24e96..7ca78b214 100644 --- a/modules/client/back/methods/sms/send.spec.js +++ b/modules/client/back/methods/sms/send.spec.js @@ -1,7 +1,6 @@ const app = require('vn-loopback/server/server'); -// #3673 sendSms tests excluded -xdescribe('sms send()', () => { +describe('sms send()', () => { it('should not return status error', async() => { const ctx = {req: {accessToken: {userId: 1}}}; const result = await app.models.Sms.send(ctx, 1105, '123456789', 'My SMS Body'); diff --git a/modules/ticket/back/methods/ticket/specs/sendSms.spec.js b/modules/ticket/back/methods/ticket/specs/sendSms.spec.js index 46ae23702..8ec4ca487 100644 --- a/modules/ticket/back/methods/ticket/specs/sendSms.spec.js +++ b/modules/ticket/back/methods/ticket/specs/sendSms.spec.js @@ -1,8 +1,7 @@ const models = require('vn-loopback/server/server').models; const soap = require('soap'); -// #3673 sendSms tests excluded -xdescribe('ticket sendSms()', () => { +describe('ticket sendSms()', () => { it('should send a message and log it', async() => { const tx = await models.Ticket.beginTransaction({});