This commit is contained in:
parent
c0c522c619
commit
576a5f050e
|
@ -2,7 +2,7 @@ const app = require('vn-loopback/server/server');
|
||||||
|
|
||||||
describe('Supplier getItemsPackaging()', () => {
|
describe('Supplier getItemsPackaging()', () => {
|
||||||
it('should return a summary the list of items from a determinate supplier', async() => {
|
it('should return a summary the list of items from a determinate supplier', async() => {
|
||||||
const item = await app.models.Supplier.getItemsPackaging(1, 1);
|
const [item] = await app.models.Supplier.getItemsPackaging(1, 1);
|
||||||
|
|
||||||
expect(item.id).toEqual(1);
|
expect(item.id).toEqual(1);
|
||||||
expect(item.name).toEqual('Ranged weapon longbow 2m');
|
expect(item.name).toEqual('Ranged weapon longbow 2m');
|
||||||
|
|
Loading…
Reference in New Issue