salix/services/loopback/common/methods/ticket/specs/get-shipped.spec.js

17 lines
459 B
JavaScript

const app = require(`${servicesDir}/ticket/server/server`);
describe('ticket getShipped()', () => {
it('should call the getShipped method', done => {
let data = {
landed: new Date(),
addressFk: 121,
agencyModeFk: 2
};
app.models.Ticket.getShipped(data)
.then(response => {
expect(response.warehouseFk).toEqual(1);
done();
});
});
});