11 lines
340 B
JavaScript
11 lines
340 B
JavaScript
const app = require('vn-loopback/server/server');
|
|
|
|
describe('sms send()', () => {
|
|
it('should not return status error', async() => {
|
|
const ctx = {req: {accessToken: {userId: 1}}};
|
|
const result = await app.models.Sms.send(ctx, 1105, '123456789', 'My SMS Body');
|
|
|
|
expect(result.status).toBeUndefined();
|
|
});
|
|
});
|