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

10 lines
294 B
JavaScript

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