2018-07-24 10:14:35 +00:00
|
|
|
const app = require(`${servicesDir}/ticket/server/server`);
|
|
|
|
|
|
|
|
describe('ticket getShipped()', () => {
|
|
|
|
it('should call the getShipped method', done => {
|
|
|
|
let data = {
|
|
|
|
landed: new Date(),
|
|
|
|
addressFk: 121,
|
2018-07-30 13:21:12 +00:00
|
|
|
agencyModeFk: 7
|
2018-07-24 10:14:35 +00:00
|
|
|
};
|
|
|
|
app.models.Ticket.getShipped(data)
|
|
|
|
.then(response => {
|
|
|
|
expect(response.warehouseFk).toEqual(1);
|
|
|
|
done();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|