From a10c05a4ba2f3a26ec87c8b20aa54e1c00b3bb99 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 6 Jan 2014 22:33:54 +0000 Subject: Remove test for uint8array --- lib/unzip.js | 2 -- tests/mammoth.tests.js | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/lib/unzip.js b/lib/unzip.js index 98709e8..584072f 100644 --- a/lib/unzip.js +++ b/lib/unzip.js @@ -13,8 +13,6 @@ function openZip(options) { return unzipStream(fs.createReadStream(options.path)); } else if (options.file) { return options.file; - } else if (options.uint8Array) { - return unzipUint8Array(options.uint8Array); } else { return q.reject(new Error("Could not find file in options")); } diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index c78bc19..67b95f3 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -23,20 +23,6 @@ describe('mammoth', function() { }); }); - test('should convert Uint8Array containing one paragraph to single p element', function() { - var docxPath = path.join(__dirname, "test-data/single-paragraph.docx"); - - return q.nfcall(fs.readFile, docxPath).then(function(buffer) { - var array = new Uint8Array(buffer.length); - for (var i = 0; i < buffer.length; i++) { - array[i] = buffer[i]; - } - return mammoth.convertToHtml({uint8Array: array}).then(function(result) { - assert.equal("

Walking on imported air

", result.value); - }); - }); - }); - test('options are passed to document converter when creating Converter', function() { var docxFile = createFakeDocxFile({ "word/document.xml": testData("simple/word/document.xml") -- cgit v1.2.3