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

11 lines
319 B
JavaScript

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