aboutsummaryrefslogtreecommitdiff
path: root/tests/zipfile.tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/zipfile.tests.js')
-rw-r--r--tests/zipfile.tests.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/zipfile.tests.js b/tests/zipfile.tests.js
deleted file mode 100644
index 1a0ab99..0000000
--- a/tests/zipfile.tests.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var assert = require("assert");
-
-var JSZip = require("jszip");
-
-var test = require("./testing").test;
-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");
- });
- });
-});
-
-function emptyZipFile() {
- var zip = new JSZip();
- var buffer = zip.generate({type: "arraybuffer"});
- return zipfile.openArrayBuffer(buffer);
-}