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

13 lines
395 B
JavaScript

const app = require('vn-loopback/server/server');
describe('ticket listPackaging()', () => {
it('should return the packaging', async() => {
let filter = {where: {packagingFk: 1}};
let response = await app.models.Packaging.listPackaging(filter);
expect(response[0].name).toBeDefined();
expect(response[0].name).toEqual('Container ammo box 1m');
});
});