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(); }); });