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