fix test
gitea/salix/2010-worker_phone_refactor This commit looks good
Details
gitea/salix/2010-worker_phone_refactor This commit looks good
Details
This commit is contained in:
parent
1898337d08
commit
8ae5a8705e
|
@ -1,10 +1,10 @@
|
||||||
const app = require('vn-loopback/server/server');
|
const app = require('vn-loopback/server/server');
|
||||||
|
|
||||||
describe('client sendSms()', () => {
|
describe('client sendSms()', () => {
|
||||||
let clientLog;
|
let createdLog;
|
||||||
|
|
||||||
afterAll(async done => {
|
afterAll(async done => {
|
||||||
await app.models.ClientLog.destroyById(clientLog.id);
|
await app.models.ClientLog.destroyById(createdLog.id);
|
||||||
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
@ -19,7 +19,7 @@ describe('client sendSms()', () => {
|
||||||
|
|
||||||
logId = sms.logId;
|
logId = sms.logId;
|
||||||
|
|
||||||
let createdLog = await app.models.ClientLog.findById(logId);
|
createdLog = await app.models.ClientLog.findById(logId);
|
||||||
let json = JSON.parse(JSON.stringify(createdLog.newInstance));
|
let json = JSON.parse(JSON.stringify(createdLog.newInstance));
|
||||||
|
|
||||||
expect(json.message).toEqual(message);
|
expect(json.message).toEqual(message);
|
||||||
|
|
Loading…
Reference in New Issue