invoiceOut donwload test fixed for any year
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2022-01-04 10:01:34 +01:00
parent 7b2b274cd5
commit 8dbd184cce
1 changed files with 1 additions and 1 deletions

View File

@ -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"/);
});
});