Permalink
Browse files

use explicit `instanceof JSZip` check (twice)

  • Loading branch information...
1 parent bd6d21b commit 06cd9470917231dba67dd7adc88daaa5b9766266 @Mithgol Mithgol committed Feb 13, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test.js
View
@@ -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"); // {{{

0 comments on commit 06cd947

Please sign in to comment.