2023-09-01 10:34:33 +00:00
|
|
|
const {models} = require('vn-loopback/server/server');
|
|
|
|
|
2023-09-06 07:35:43 +00:00
|
|
|
describe('getAddress()', () => {
|
2023-09-12 06:44:42 +00:00
|
|
|
it('return list of address last year', async() => {
|
2023-09-06 07:35:43 +00:00
|
|
|
let response = await models.Address.getAddress();
|
2023-09-01 10:34:33 +00:00
|
|
|
|
|
|
|
expect(response.length).toBeGreaterThan(0);
|
|
|
|
expect(response[0].addressFk).toEqual(1);
|
|
|
|
});
|
|
|
|
});
|