11 lines
322 B
JavaScript
11 lines
322 B
JavaScript
|
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);
|
||
|
});
|
||
|
});
|