renamed the it statement

This commit is contained in:
Carlos Jimenez Ruiz 2019-04-10 10:53:00 +02:00
parent a248f722a5
commit 9db389329d
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
const app = require('vn-loopback/server/server'); const app = require('vn-loopback/server/server');
describe('message send()', () => { describe('message send()', () => {
it('should call the send method and return the response', async() => { it('should return a response containing the same message in params', async() => {
let ctx = {req: {accessToken: {userId: 1}}}; let ctx = {req: {accessToken: {userId: 1}}};
let params = { let params = {
recipientFk: 1, recipientFk: 1,

View File

@ -6,7 +6,7 @@ const app = require('vn-loopback/server/server');
* por destinatario inválido, pero puede llegar a fallar. * por destinatario inválido, pero puede llegar a fallar.
*/ */
describe('sms send()', () => { describe('sms send()', () => {
it('should call the send method', async() => { it('should should return the expected message and status code', async() => {
let ctx = {req: {accessToken: {userId: 1}}}; let ctx = {req: {accessToken: {userId: 1}}};
let result = await app.models.Sms.send(ctx, null, 'Invalid', 'My SMS Body'); let result = await app.models.Sms.send(ctx, null, 'Invalid', 'My SMS Body');