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

12 lines
373 B
JavaScript
Raw Normal View History

const app = require('vn-loopback/server/server');
2022-02-28 09:46:14 +00:00
// #3673 sendSms tests excluded
xdescribe('sms send()', () => {
2022-01-11 07:39:06 +00:00
it('should not return status error', async() => {
const ctx = {req: {accessToken: {userId: 1}}};
2022-01-11 09:03:59 +00:00
const result = await app.models.Sms.send(ctx, 1105, '123456789', 'My SMS Body');
2022-01-11 07:39:06 +00:00
expect(result.status).toBeUndefined();
});
});