From 644202ba0ee24edf5cb9431eebb75a7d730723e4 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 3 Jan 2022 08:44:48 +0100 Subject: [PATCH] year in one line --- .../back/methods/invoiceOut/specs/download.spec.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/invoiceOut/back/methods/invoiceOut/specs/download.spec.js b/modules/invoiceOut/back/methods/invoiceOut/specs/download.spec.js index c656d9b0f..371aa88fc 100644 --- a/modules/invoiceOut/back/methods/invoiceOut/specs/download.spec.js +++ b/modules/invoiceOut/back/methods/invoiceOut/specs/download.spec.js @@ -13,9 +13,8 @@ describe('InvoiceOut download()', () => { }; it('should return the downloaded file name', async() => { - let year = new Date(); - year = year.getFullYear(); - + const year = new Date().getFullYear(); + spyOn(models.InvoiceContainer, 'container').and.returnValue({ client: {root: '/path'} });