Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use explicit `instanceof JSZip` check (twice)

  • Loading branch information...
commit 06cd9470917231dba67dd7adc88daaa5b9766266 1 parent bd6d21b
@Mithgol Mithgol authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test.js
View
4 test/test.js
@@ -58,10 +58,10 @@ test("JSZip", function(){
ok(JSZip, "JSZip exists");
var zip = new JSZip();
- ok(zip, "Constructor works");
+ ok(zip instanceof JSZip, "Constructor works");
var zipNoNew = JSZip();
- ok(zipNoNew.file, "Constructor adds `new` before itself where necessary");
+ ok(zipNoNew instanceof JSZip, "Constructor adds `new` before itself where necessary");
});
QUnit.module("Essential"); // {{{
Please sign in to comment.
Something went wrong with that request. Please try again.