From 41ab1bbe3555cb7b122d9bb357c29335c504ebd3 Mon Sep 17 00:00:00 2001 From: carlosjr Date: Thu, 15 Apr 2021 10:50:10 +0200 Subject: [PATCH] fixed a test where invoiceIn was nested into the summary --- modules/invoiceIn/back/methods/invoice-in/specs/summary.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/invoiceIn/back/methods/invoice-in/specs/summary.spec.js b/modules/invoiceIn/back/methods/invoice-in/specs/summary.spec.js index cf7ccdb1c..ff7a39ef5 100644 --- a/modules/invoiceIn/back/methods/invoice-in/specs/summary.spec.js +++ b/modules/invoiceIn/back/methods/invoice-in/specs/summary.spec.js @@ -4,6 +4,6 @@ describe('invoiceIn summary()', () => { it('should return a summary object containing data from one invoiceIn', async() => { const summary = await app.models.InvoiceIn.summary(1); - expect(summary.invoiceIn.supplierRef).toEqual('1234'); + expect(summary.supplierRef).toEqual('1234'); }); });