salix/services/loopback/common/methods/ticket/specs/getLanded.spec.js

16 lines
421 B
JavaScript
Raw Normal View History

2018-08-16 11:12:18 +00:00
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();
});
});