2018-08-10 09:40:48 +00:00
|
|
|
const app = require(`${servicesDir}/ticket/server/server`);
|
|
|
|
|
|
|
|
describe('ticket listPackaging()', () => {
|
|
|
|
it('should call the listPackaging method and return the response', async () => {
|
|
|
|
let filter = {where: {packagingFk: 1}};
|
|
|
|
let response = await app.models.Packaging.listPackaging(filter);
|
|
|
|
|
|
|
|
expect(response[0].name).toBeDefined();
|
2018-09-13 10:32:33 +00:00
|
|
|
expect(response[0].name).toEqual('Broken Box');
|
2018-08-10 09:40:48 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|