2020-06-17 12:00:04 +00:00
|
|
|
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-01-11 09:03:59 +00:00
|
|
|
const result = await app.models.Sms.send(ctx, 1105, '123456789', 'My SMS Body');
|
2020-06-17 12:00:04 +00:00
|
|
|
|
2022-01-11 07:39:06 +00:00
|
|
|
expect(result.status).toBeUndefined();
|
2020-06-17 12:00:04 +00:00
|
|
|
});
|
|
|
|
});
|