salix/modules/client/back/methods/address/specs/getAddress.spec.js

11 lines
318 B
JavaScript
Raw Normal View History

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-06 07:37:41 +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);
});
});