salix/modules/ticket/back/methods/packaging/specs/listPackaging.spec.js

13 lines
421 B
JavaScript
Raw Normal View History

2018-12-21 11:50:28 +00:00
const app = require(`${serviceRoot}/server/server`);
2018-08-10 09:40:48 +00:00
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();
expect(response[0].name).toEqual('Broken Box');
2018-08-10 09:40:48 +00:00
});
});