11 lines
373 B
JavaScript
11 lines
373 B
JavaScript
const app = require('vn-loopback/server/server');
|
|
|
|
describe('Agency landsThatDay()', () => {
|
|
const today = new Date();
|
|
it('should return a list of agencies that can land a shipment on a day for an address', async() => {
|
|
let agencies = await app.models.Agency.landsThatDay(101, today);
|
|
|
|
expect(agencies.length).toBeGreaterThanOrEqual(3);
|
|
});
|
|
});
|