const {models} = require('vn-loopback/server/server'); describe('getAddress()', () => { fit('return list of address last year', async() => { let response = await models.Collection.getAddress(); expect(response.length).toBeGreaterThan(0); expect(response[0].addressFk).toEqual(1); }); });