This commit is contained in:
parent
b378a462aa
commit
0c9b4bbe87
|
@ -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"');
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in New Issue