fix test
gitea/salix/2010-worker_phone_refactor This commit looks good Details

This commit is contained in:
Bernat Exposito Domenech 2020-01-20 11:17:04 +01:00
parent 1898337d08
commit 8ae5a8705e
1 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
const app = require('vn-loopback/server/server');
describe('client sendSms()', () => {
let clientLog;
let createdLog;
afterAll(async done => {
await app.models.ClientLog.destroyById(clientLog.id);
await app.models.ClientLog.destroyById(createdLog.id);
done();
});
@ -19,7 +19,7 @@ describe('client sendSms()', () => {
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));
expect(json.message).toEqual(message);