From 576a5f050ee7d5ee90af917f0f82e134f535f0fa Mon Sep 17 00:00:00 2001 From: alexandre Date: Tue, 30 May 2023 13:48:56 +0200 Subject: [PATCH] refs #5513 fix back test --- .../back/methods/supplier/specs/getItemsPackaging.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/supplier/back/methods/supplier/specs/getItemsPackaging.spec.js b/modules/supplier/back/methods/supplier/specs/getItemsPackaging.spec.js index fe8a5a489..0fb01f5b5 100644 --- a/modules/supplier/back/methods/supplier/specs/getItemsPackaging.spec.js +++ b/modules/supplier/back/methods/supplier/specs/getItemsPackaging.spec.js @@ -2,7 +2,7 @@ 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); + const [item] = await app.models.Supplier.getItemsPackaging(1, 1); expect(item.id).toEqual(1); expect(item.name).toEqual('Ranged weapon longbow 2m');