16 lines
421 B
JavaScript
16 lines
421 B
JavaScript
|
const app = require(`${servicesDir}/ticket/server/server`);
|
||
|
|
||
|
describe('ticket getLanded()', () => {
|
||
|
it('should return a landing date', async() => {
|
||
|
let data = {
|
||
|
shipped: new Date(),
|
||
|
addressFk: 121,
|
||
|
agencyModeFk: 7,
|
||
|
warehouseFk: 1
|
||
|
};
|
||
|
let result = await app.models.Ticket.getLanded(data);
|
||
|
|
||
|
expect(result.landed).toBeDefined();
|
||
|
});
|
||
|
});
|