From a080fc59a3fca08bdc6e23a2eeae440f5c7047b3 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 7 Jul 2016 22:17:34 +0100 Subject: Use exports for all tests --- test/zipfile.tests.js | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'test/zipfile.tests.js') 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"); }); }); -- cgit v1.2.3