diff --git a/back/methods/sms/specs/send.spec.js b/back/methods/sms/specs/send.spec.js index 8eee85bd6..e63537cb4 100644 --- a/back/methods/sms/specs/send.spec.js +++ b/back/methods/sms/specs/send.spec.js @@ -3,8 +3,15 @@ const app = require('vn-loopback/server/server'); describe('sms send()', () => { it('should not return status error', async() => { const ctx = {req: {accessToken: {userId: 1}}}; - const result = await app.models.Sms.send(ctx, '123456789', 'My SMS Body'); + const result = await app.models.Sms.send(ctx, '123456789', 'My SMS Body', {insert: true}); expect(result.status).toBeUndefined(); }); + + it('should not insert', async() => { + const ctx = {req: {accessToken: {userId: 1}}}; + const result = await app.models.Sms.send(ctx, '123456789', 'My SMS Body', {insert: false}); + + expect(result).toBeUndefined(); + }); }); diff --git a/db/versions/10958-orangeDendro/00-firstScript.sql b/db/versions/10958-orangeDendro/00-firstScript.sql index 20d93e48f..0162aed76 100644 --- a/db/versions/10958-orangeDendro/00-firstScript.sql +++ b/db/versions/10958-orangeDendro/00-firstScript.sql @@ -1,2 +1,4 @@ --- Place your SQL code here +#6427 -- Place your SQL code here ALTER TABLE account.`user` ADD recoveryPhone varchar(20) NULL; + +-- ALTER TABLE vn.`sms` MODIFY COLUMN senderFk int(10) unsigned NULL; diff --git a/e2e/paths/01-salix/04_recoverPassword.spec.js b/e2e/paths/01-salix/04_recoverPassword.spec.js index ebf157800..277504623 100644 --- a/e2e/paths/01-salix/04_recoverPassword.spec.js +++ b/e2e/paths/01-salix/04_recoverPassword.spec.js @@ -1,7 +1,7 @@ import selectors from '../../helpers/selectors'; import getBrowser from '../../helpers/puppeteer'; -fdescribe('RecoverPassword path', async() => { +describe('RecoverPassword path', async() => { let browser; let page;