#1436 unitarios back invoiceOut/download
gitea/salix/dev This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2019-06-11 07:06:49 +02:00
parent b378a462aa
commit 0c9b4bbe87
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
const app = require('vn-loopback/server/server');
describe('InvoiceOut download()', () => {
it('should return the downloaded fine name', async() => {
let result = await app.models.InvoiceOut.download(1);
expect(result[1]).toEqual('text/plain');
expect(result[2]).toEqual('filename="README.md"');
});
});