This commit is contained in:
parent
d21b949ffb
commit
372b9a2ce2
|
@ -0,0 +1,12 @@
|
|||
const app = require('vn-loopback/server/server');
|
||||
|
||||
describe('Supplier getItemsPackaging()', () => {
|
||||
it('should return a summary the list of items from a determinate supplier', async() => {
|
||||
const item = await app.models.Supplier.getItemsPackaging(1, 1);
|
||||
|
||||
expect(item.id).toEqual(1);
|
||||
expect(item.name).toEqual('Ranged weapon longbow 2m');
|
||||
expect(item.quantity).toEqual(5000);
|
||||
expect(item.quantityTotal).toEqual(5100);
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue