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
3
3
global . TextDecoder = require ( 'util' ) . TextDecoder
4
4
5
5
import { jsPDF } from 'jspdf'
6
+ import { applyPlugin } from '../src/applyPlugin'
6
7
import { DocHandler } from '../src/documentHandler'
7
8
import { parseHtml } from '../src/htmlParser'
8
9
const assert = require ( 'assert' )
9
10
const jsdom = require ( 'jsdom' )
10
11
const dom = new jsdom . JSDOM ( '' )
11
12
13
+ applyPlugin ( jsPDF )
14
+
12
15
describe ( 'html parser' , ( ) => {
13
16
it ( 'full table' , ( ) => {
14
17
const doc = new DocHandler ( new jsPDF ( ) )
Original file line number Diff line number Diff line change 1
1
import { jsPDF } from 'jspdf'
2
- import autoTable , { autoTableInstanceType } from '../src/main'
2
+ import autoTable , { applyPlugin , autoTableInstanceType } from '../src/main'
3
3
const assert = require ( 'assert' )
4
4
5
+ applyPlugin ( jsPDF )
6
+
5
7
describe ( 'runner' , ( ) => {
6
8
it ( 'prototype' , ( ) => {
7
9
const doc : any = new jsPDF ( )
@@ -37,6 +39,7 @@ describe('runner', () => {
37
39
} )
38
40
39
41
it ( 'previous typing' , ( ) => {
42
+ applyPlugin ( jsPDF )
40
43
const doc = new jsPDF ( )
41
44
; ( ( doc as any ) . autoTable as autoTableInstanceType ) ( { body : [ [ 'test' ] ] } )
42
45
assert ( true )
You can’t perform that action at this time.
0 commit comments