diff options
| -rw-r--r-- | lib/unzip.js | 2 | ||||
| -rw-r--r-- | tests/mammoth.tests.js | 14 |
2 files changed, 0 insertions, 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("<p>Walking on imported air</p>", result.value); - }); - }); - }); - test('options are passed to document converter when creating Converter', function() { var docxFile = createFakeDocxFile({ "word/document.xml": testData("simple/word/document.xml") |
