Skip to content

Commit

Permalink
Revert "Disable proto assert that fails in browsers"
Browse files Browse the repository at this point in the history
This reverts commit 9046487.
  • Loading branch information
Stuk committed Aug 5, 2021
1 parent 89298b9 commit 79f7691
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/asserts/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ QUnit.module("load", function () {
assert.ok(typeof file === "string");
JSZip.loadAsync(file)
.then(function (zip) {
// Passes in Node, fails in browsers:
// assert.equal(Object.getPrototypeOf(zip.files), zip.files.__proto__); // jshint ignore:line
assert.notEqual(Object.getPrototypeOf(zip.files), zip.files.__proto__);
return zip.file("__proto__").async("string"); })
.then(function(result) {
assert.equal(result, "hello\n", "the zip was correctly read.");
Expand Down

0 comments on commit 79f7691

Please sign in to comment.