diff --git a/modules/invoiceOut/back/methods/invoiceOut/specs/download.spec.js b/modules/invoiceOut/back/methods/invoiceOut/specs/download.spec.js index 3a46311ad4..4029bfbcfa 100644 --- a/modules/invoiceOut/back/methods/invoiceOut/specs/download.spec.js +++ b/modules/invoiceOut/back/methods/invoiceOut/specs/download.spec.js @@ -23,6 +23,6 @@ describe('InvoiceOut download()', () => { const result = await models.InvoiceOut.download(ctx, invoiceId); expect(result[1]).toEqual('application/pdf'); - expect(result[2]).toEqual('filename="2021T1111111.pdf"'); + expect(result[2]).toMatch(/filename="\d{4}T1111111.pdf"/); }); });