salix/modules/zone/back/methods/agency/specs/getLanded.spec.js

16 lines
538 B
JavaScript
Raw Normal View History

2019-01-24 08:08:28 +00:00
const app = require('vn-loopback/server/server');
2019-11-18 11:32:50 +00:00
describe('agency getLanded()', () => {
2018-08-16 11:12:18 +00:00
it('should return a landing date', async() => {
const shipped = new Date();
2019-11-18 11:32:50 +00:00
shipped.setDate(shipped.getDate() + 1);
const addressFk = 121;
const agencyModeFk = 7;
const warehouseFk = 1;
2020-06-05 08:01:21 +00:00
const showExpiredZones = true;
let result = await app.models.Agency.getLanded(shipped, addressFk, agencyModeFk, warehouseFk, showExpiredZones);
2018-08-16 11:12:18 +00:00
expect(result.landed).toBeDefined();
});
});