salix/back/models/specs/company.spec.js

10 lines
293 B
JavaScript
Raw Normal View History

2019-02-18 13:40:50 +00:00
const app = require('vn-loopback/server/server');
describe('loopback model Company', () => {
it('should check that the company FTH doesnt exists', async() => {
let result = await app.models.Company.findOne({where: {code: 'FTH'}});
expect(result).toBeFalsy();
});
});