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

13 lines
395 B
JavaScript
Raw Normal View History

2019-01-24 08:08:28 +00:00
const app = require('vn-loopback/server/server');
2018-08-10 09:40:48 +00:00
describe('ticket listPackaging()', () => {
2020-10-15 16:57:27 +00:00
it('should return the packaging', async() => {
2018-08-10 09:40:48 +00:00
let filter = {where: {packagingFk: 1}};
let response = await app.models.Packaging.listPackaging(filter);
expect(response[0].name).toBeDefined();
2019-03-27 07:44:15 +00:00
expect(response[0].name).toEqual('Container ammo box 1m');
2018-08-10 09:40:48 +00:00
});
});