fixes #5513 Crear back para añadir funcionalidad de Embalajes de la app #1504
|
@ -21,7 +21,7 @@ describe('entry addFromPackaging()', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should create a receipt travel', async() => {
|
it('should create an incoming travel', async() => {
|
||||||
const ctx = {args: {isTravelReception: true, supplier}};
|
const ctx = {args: {isTravelReception: true, supplier}};
|
||||||
const tx = await models.Entry.beginTransaction({});
|
const tx = await models.Entry.beginTransaction({});
|
||||||
const options = {transaction: tx};
|
const options = {transaction: tx};
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const app = require('vn-loopback/server/server');
|
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 of the list of items from a specific 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);
|
||||||
|
|
Loading…
Reference in New Issue