diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-03-18 15:06:24 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-03-18 15:06:24 +0000 |
| commit | 29b91168f296662f41bf25167d956515a6f9562e (patch) | |
| tree | bb6c8db4fe07bce5aca7503dbb80905882064ce6 | |
| parent | afc9d62c146bdeec475c08ee87875271a8af8d93 (diff) | |
Add test for inline images from CLI
| -rw-r--r-- | tests/main.tests.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/main.tests.js b/tests/main.tests.js index a97a049..97d56eb 100644 --- a/tests/main.tests.js +++ b/tests/main.tests.js @@ -27,6 +27,13 @@ describe("CLI", function() { }); }); }); + + test("inline images are included in output if writing to single file", function() { + return runMammoth(testPath("tiny-picture.docx")).then(function(result) { + assert.equal(result.stderrOutput, "") + assert.equal(result.output, '<p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAIAAAACUFjqAAAAAXNSR0IArs4c6QAAAAlwSFlzAAAOvgAADr4B6kKxwAAAABNJREFUKFNj/M+ADzDhlWUYqdIAQSwBE8U+X40AAAAASUVORK5CYII=" /></p>') + }); + }); }); function runMammoth() { |
