Merge pull request '3476-detele_ticket_bug' (#837) from 3476-detele_ticket_bug into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #837
Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
Joan Sanchez 2022-01-04 11:17:29 +00:00
commit 2a2c54e06a
2 changed files with 2 additions and 4 deletions

View File

@ -145,7 +145,7 @@
.icon-credit:before { .icon-credit:before {
content: "\e923"; content: "\e923";
} }
.icon-deletedTicketCross:before { .icon-deletedTicket:before {
content: "\e924"; content: "\e924";
} }
.icon-deleteline:before { .icon-deleteline:before {

View File

@ -13,8 +13,6 @@ describe('InvoiceOut download()', () => {
}; };
it('should return the downloaded file name', async() => { it('should return the downloaded file name', async() => {
const year = new Date().getFullYear();
spyOn(models.InvoiceContainer, 'container').and.returnValue({ spyOn(models.InvoiceContainer, 'container').and.returnValue({
client: {root: '/path'} client: {root: '/path'}
}); });
@ -25,6 +23,6 @@ describe('InvoiceOut download()', () => {
const result = await models.InvoiceOut.download(ctx, invoiceId); const result = await models.InvoiceOut.download(ctx, invoiceId);
expect(result[1]).toEqual('application/pdf'); expect(result[1]).toEqual('application/pdf');
expect(result[2]).toEqual(`filename="${year}T1111111.pdf"`); expect(result[2]).toMatch(/filename="\d{4}T1111111.pdf"/);
}); });
}); });