2019-05-13 12:34:37 +00:00
|
|
|
const app = require('vn-loopback/server/server');
|
2019-10-31 11:54:16 +00:00
|
|
|
// Petición #1848
|
|
|
|
xdescribe('Agency landsThatDay()', () => {
|
2019-05-13 12:34:37 +00:00
|
|
|
const today = new Date();
|
|
|
|
it('should return a list of agencies that can land a shipment on a day for an address', async() => {
|
2019-11-11 15:32:03 +00:00
|
|
|
let agencies = await app.models.Agency.landsThatDay(101, today);
|
2019-05-13 12:34:37 +00:00
|
|
|
|
2019-07-05 12:16:33 +00:00
|
|
|
expect(agencies.length).toBeGreaterThanOrEqual(3);
|
2019-05-13 12:34:37 +00:00
|
|
|
});
|
|
|
|
});
|