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'} });