initial implementation

This commit is contained in:
Phil Kunz
2018-10-06 13:25:45 +00:00
parent 2d70a4e229
commit f2766ab639
13 changed files with 1916 additions and 0 deletions

19
test/test.ts Normal file
View File

@ -0,0 +1,19 @@
import { expect, tap } from '@pushrocks/tapbundle';
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');
});
tap.test('should create a pdf from website', async () => {
await testSmartPdf.getPdfForWebsite('https://wikipedia.org');
});
tap.start()