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