fix(core): update

This commit is contained in:
2019-05-29 19:49:23 +02:00
parent d8fd7f9956
commit 5e8abaa5b4
2 changed files with 31 additions and 8 deletions

View File

@ -24,6 +24,11 @@ tap.test('should create a pdf from website as single page PDF', async () => {
await testSmartPdf.getFullWebsiteAsSinglePdf('https://maintainedby.lossless.com');
});
tap.test('should create a valid PDFResult', async () => {
const pdfResult = await testSmartPdf.getFullWebsiteAsSinglePdf('https://maintainedby.lossless.com');
expect(pdfResult.buffer).to.be.instanceOf(Buffer);
});
tap.test('should be able to close properly', async () => {
await testSmartPdf.stop();
});