11 lines
318 B
JavaScript
11 lines
318 B
JavaScript
const {models} = require('vn-loopback/server/server');
|
|
|
|
describe('getAddress()', () => {
|
|
it('return list of address last year', async() => {
|
|
let response = await models.Address.getAddress();
|
|
|
|
expect(response.length).toBeGreaterThan(0);
|
|
expect(response[0].addressFk).toEqual(1);
|
|
});
|
|
});
|