salix/modules/client/back/methods/sms/send.spec.js

11 lines
334 B
JavaScript
Raw Normal View History

const app = require('vn-loopback/server/server');
2022-03-17 07:13:18 +00:00
describe('sms send()', () => {
2022-01-11 07:39:06 +00:00
it('should not return status error', async() => {
const ctx = {req: {accessToken: {userId: 1}}};
2022-05-17 10:37:54 +00:00
const result = await app.models.Sms.send(ctx, '123456789', 'My SMS Body');
2022-01-11 07:39:06 +00:00
expect(result.status).toBeUndefined();
});
});