16 lines
538 B
JavaScript
16 lines
538 B
JavaScript
const app = require('vn-loopback/server/server');
|
|
|
|
describe('agency getLanded()', () => {
|
|
it('should return a landing date', async() => {
|
|
const shipped = new Date();
|
|
shipped.setDate(shipped.getDate() + 1);
|
|
const addressFk = 121;
|
|
const agencyModeFk = 7;
|
|
const warehouseFk = 1;
|
|
const showExpiredZones = true;
|
|
let result = await app.models.Agency.getLanded(shipped, addressFk, agencyModeFk, warehouseFk, showExpiredZones);
|
|
|
|
expect(result.landed).toBeDefined();
|
|
});
|
|
});
|