diff --git a/test/asserts/load.js b/test/asserts/load.js index 4b9db830..ce073cc3 100644 --- a/test/asserts/load.js +++ b/test/asserts/load.js @@ -22,8 +22,8 @@ QUnit.module("load", function () { assert.ok(typeof file === "string"); JSZip.loadAsync(file) .then(function (zip) { - return zip.file("toString").async("string"); - }) + 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."); done();