Skip to content

Commit 6bf6ab8

Browse files
committed
fix node tests - no need to require atob/btoa
1 parent fdf0679 commit 6bf6ab8

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

test/deployment/node/loadGlobals.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/* eslint-disable no-unused-vars */
22

33
global.loadGlobals = function() {
4-
global.btoa = require("btoa"); // used in some specs
5-
64
global.Canvg = require("canvg").Canvg;
75
const jsPDF = require("../../../dist/jspdf.node.js");
86
global.jsPDF = jsPDF.jsPDF;

test/specs/Uint8Array.spec.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
describe("Module: addimage Uint8Array", () => {
77
beforeAll(loadGlobals);
8-
if (typeof global !== "undefined" && global.isNode == true) {
9-
eval("var atob = require('atob')");
10-
}
118
function convertDataURIToArrayBuffer(dataURI) {
129
var BASE64_MARKER = ";base64,";
1310
var base64Index = dataURI.indexOf(BASE64_MARKER) + BASE64_MARKER.length;

0 commit comments

Comments
 (0)