16 lines
444 B
JavaScript
16 lines
444 B
JavaScript
const app = require(`${servicesDir}/ticket/server/server`);
|
|
|
|
describe('ticket getShipped()', () => {
|
|
it('should call the getShipped method', async() => {
|
|
let data = {
|
|
landed: new Date(),
|
|
addressFk: 121,
|
|
agencyModeFk: 7
|
|
};
|
|
await app.models.Ticket.getShipped(data)
|
|
.then(response => {
|
|
expect(response.warehouseFk).toEqual(1);
|
|
});
|
|
});
|
|
});
|