Skip to content

Commit

Permalink
TextDecorder workaround as well
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbengtsson committed Sep 10, 2021
1 parent 4e2a665 commit ec05323
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/testCssParser.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Fix for https://github.com/simonbengtsson/jsPDF-AutoTable/runs/3567913815
global.TextEncoder = require("util").TextEncoder;
global.TextEncoder = require("util").TextEncoder;
global.TextDecoder = require("util").TextDecoder;

import { parseCss } from '../src/cssParser'
const assert = require('assert')
Expand Down
1 change: 1 addition & 0 deletions test/testHtmlParser.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Fix for https://github.com/simonbengtsson/jsPDF-AutoTable/runs/3567913815
global.TextEncoder = require("util").TextEncoder;
global.TextDecoder = require("util").TextDecoder;

import { parseHtml } from '../src/htmlParser'
import { DocHandler } from '../src/documentHandler'
Expand Down

0 comments on commit ec05323

Please sign in to comment.