fix: intermittentBack test
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
c46d325e23
commit
223b8f6d00
|
@ -15,6 +15,15 @@ describe('InvoiceOut downloadZip()', () => {
|
|||
it('should return part of link to dowloand the zip', async() => {
|
||||
const tx = await models.InvoiceOut.beginTransaction({});
|
||||
|
||||
const promise = new Promise(resolve => resolve('streamObject'));
|
||||
promise.path = 'storage/pdfs/invoice/2001/1/1/2001T4444444.pdf';
|
||||
|
||||
spyOn(models.InvoiceOut, 'download').and.returnValue([
|
||||
promise,
|
||||
'application/pdf',
|
||||
'filename="2001T1111111.pdf"'
|
||||
]);
|
||||
|
||||
try {
|
||||
const options = {transaction: tx};
|
||||
|
||||
|
@ -32,6 +41,15 @@ describe('InvoiceOut downloadZip()', () => {
|
|||
it('should return an error if the size of the files is too large', async() => {
|
||||
const tx = await models.InvoiceOut.beginTransaction({});
|
||||
|
||||
const promise = new Promise(resolve => resolve('streamObject'));
|
||||
promise.path = 'storage/pdfs/invoice/2001/1/1/2001T4444444.pdf';
|
||||
|
||||
spyOn(models.InvoiceOut, 'download').and.returnValue([
|
||||
promise,
|
||||
'application/pdf',
|
||||
'filename="2001T1111111.pdf"'
|
||||
]);
|
||||
|
||||
let error;
|
||||
try {
|
||||
const options = {transaction: tx};
|
||||
|
|
Loading…
Reference in New Issue