fix(core): update

This commit is contained in:
2019-08-14 11:18:14 +02:00
parent 3308895b3b
commit ec4768e1cc
5 changed files with 26 additions and 16 deletions

View File

@ -29,6 +29,12 @@ tap.test('should create a valid PDFResult', async () => {
'https://maintainedby.lossless.com'
);
expect(pdfResult.buffer).to.be.instanceOf(Buffer);
const fs = await import('fs');
if (!fs.existsSync('.nogit/')) {
fs.mkdirSync('.nogit/');
}
fs.writeFileSync('.nogit/sample.pdf', pdfResult.buffer);
});
tap.test('should be able to close properly', async () => {