File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,15 @@ global.TextEncoder = require('util').TextEncoder
33global . TextDecoder = require ( 'util' ) . TextDecoder
44
55import { jsPDF } from 'jspdf'
6+ import { applyPlugin } from '../src/applyPlugin'
67import { DocHandler } from '../src/documentHandler'
78import { parseHtml } from '../src/htmlParser'
89const assert = require ( 'assert' )
910const jsdom = require ( 'jsdom' )
1011const dom = new jsdom . JSDOM ( '' )
1112
13+ applyPlugin ( jsPDF )
14+
1215describe ( 'html parser' , ( ) => {
1316 it ( 'full table' , ( ) => {
1417 const doc = new DocHandler ( new jsPDF ( ) )
Original file line number Diff line number Diff line change 11import { jsPDF } from 'jspdf'
2- import autoTable , { autoTableInstanceType } from '../src/main'
2+ import autoTable , { applyPlugin , autoTableInstanceType } from '../src/main'
33const assert = require ( 'assert' )
44
5+ applyPlugin ( jsPDF )
6+
57describe ( 'runner' , ( ) => {
68 it ( 'prototype' , ( ) => {
79 const doc : any = new jsPDF ( )
@@ -37,6 +39,7 @@ describe('runner', () => {
3739 } )
3840
3941 it ( 'previous typing' , ( ) => {
42+ applyPlugin ( jsPDF )
4043 const doc = new jsPDF ( )
4144 ; ( ( doc as any ) . autoTable as autoTableInstanceType ) ( { body : [ [ 'test' ] ] } )
4245 assert ( true )
You can’t perform that action at this time.
0 commit comments