fix(core): update

This commit is contained in:
2018-10-06 17:35:26 +02:00
parent 665bcba84e
commit da421e29be
6 changed files with 55 additions and 57 deletions

View File

@ -1,12 +1,12 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartpdf from '../ts/index'
import * as smartpdf from '../ts/index';
let testSmartPdf: smartpdf.SmartPdf;
tap.test('should create a valid instance of smartpdf', async () => {
testSmartPdf = new smartpdf.SmartPdf();
expect(testSmartPdf).to.be.instanceof(smartpdf.SmartPdf);
})
});
tap.test('should create a pdf from html string', async () => {
await testSmartPdf.getPdfForHtmlString('hi');
@ -16,4 +16,8 @@ tap.test('should create a pdf from website', async () => {
await testSmartPdf.getPdfForWebsite('https://wikipedia.org');
});
tap.start()
tap.test('should be able to close properly', async () => {
await testSmartPdf.close();
});
tap.start();