diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-07-07 22:17:34 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-07-07 22:17:34 +0100 |
| commit | a080fc59a3fca08bdc6e23a2eeae440f5c7047b3 (patch) | |
| tree | 3d56033c294c617eb7de6b693750efb70a81dd4f /test/zipfile.tests.js | |
| parent | 28a0e40b645c051d91626ca90959e847b061c8da (diff) | |
Use exports for all tests
Diffstat (limited to 'test/zipfile.tests.js')
| -rw-r--r-- | test/zipfile.tests.js | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/test/zipfile.tests.js b/test/zipfile.tests.js index 1a0ab99..c838548 100644 --- a/test/zipfile.tests.js +++ b/test/zipfile.tests.js @@ -2,20 +2,18 @@ var assert = require("assert"); var JSZip = require("jszip"); -var test = require("./testing").test; +var test = require("./test")(module); var zipfile = require("../lib/zipfile"); -describe("zipfile", function() { - test('file in zip can be read after being written', function() { - var zip = emptyZipFile(); - assert(!zip.exists("song/title")); - - zip.write("song/title", "Dark Blue"); - - assert(zip.exists("song/title")); - return zip.read("song/title", "utf8").then(function(contents) { - assert.equal(contents, "Dark Blue"); - }); +test('file in zip can be read after being written', function() { + var zip = emptyZipFile(); + assert(!zip.exists("song/title")); + + zip.write("song/title", "Dark Blue"); + + assert(zip.exists("song/title")); + return zip.read("song/title", "utf8").then(function(contents) { + assert.equal(contents, "Dark Blue"); }); }); |
