We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdf0679 commit 6bf6ab8Copy full SHA for 6bf6ab8
test/deployment/node/loadGlobals.js
@@ -1,8 +1,6 @@
1
/* eslint-disable no-unused-vars */
2
3
global.loadGlobals = function() {
4
- global.btoa = require("btoa"); // used in some specs
5
-
6
global.Canvg = require("canvg").Canvg;
7
const jsPDF = require("../../../dist/jspdf.node.js");
8
global.jsPDF = jsPDF.jsPDF;
test/specs/Uint8Array.spec.js
@@ -5,9 +5,6 @@
describe("Module: addimage Uint8Array", () => {
beforeAll(loadGlobals);
- if (typeof global !== "undefined" && global.isNode == true) {
9
- eval("var atob = require('atob')");
10
- }
11
function convertDataURIToArrayBuffer(dataURI) {
12
var BASE64_MARKER = ";base64,";
13
var base64Index = dataURI.indexOf(BASE64_MARKER) + BASE64_MARKER.length;
0 commit comments