const {models} = require('vn-loopback/server/server'); describe('getSectors()', () => { it('return list of sectors', async() => { let response = await models.Collection.getSectors(); expect(response.length).toBeGreaterThan(0); expect(response[0].id).toEqual(1); expect(response[0].description).toEqual('First sector'); }); });