renamed the it statement
This commit is contained in:
parent
a248f722a5
commit
9db389329d
|
@ -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,
|
||||||
|
|
|
@ -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');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue