diff options
Diffstat (limited to 'tests/main.tests.js')
| -rw-r--r-- | tests/main.tests.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/main.tests.js b/tests/main.tests.js index 01004a8..633f0bd 100644 --- a/tests/main.tests.js +++ b/tests/main.tests.js @@ -12,8 +12,8 @@ var testPath = require("./testing").testPath; describe("CLI", function() { test("HTML is printed to stdout if output file is not set", function() { return runMammoth(testPath("single-paragraph.docx")).then(function(result) { - assert.equal(result.stderrOutput, "") - assert.equal(result.output, "<p>Walking on imported air</p>") + assert.equal(result.stderrOutput, ""); + assert.equal(result.output, "<p>Walking on imported air</p>"); }); }); @@ -21,8 +21,8 @@ describe("CLI", function() { return createTempDir().then(function(tempDir) { var outputPath = path.join(tempDir, "output.html"); return runMammoth(testPath("single-paragraph.docx"), outputPath).then(function(result) { - assert.equal(result.stderrOutput, "") - assert.equal(result.output, "") + assert.equal(result.stderrOutput, ""); + assert.equal(result.output, ""); assert.equal(fs.readFileSync(outputPath, "utf8"), "<p>Walking on imported air</p>"); }); }); @@ -32,8 +32,8 @@ 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,' + imageBase64 + '" /></p>') + assert.equal(result.stderrOutput, ""); + assert.equal(result.output, '<p><img src="data:image/png;base64,' + imageBase64 + '" /></p>'); }); }); @@ -42,8 +42,8 @@ describe("CLI", function() { var outputPath = path.join(tempDir, "tiny-picture.html"); var imagePath = path.join(tempDir, "1.png"); return runMammoth(testPath("tiny-picture.docx"), "--output-dir", tempDir).then(function(result) { - assert.equal(result.stderrOutput, "") - assert.equal(result.output, "") + assert.equal(result.stderrOutput, ""); + assert.equal(result.output, ""); assert.equal(fs.readFileSync(outputPath, "utf8"), '<p><img src="1.png" /></p>'); assert.equal(fs.readFileSync(imagePath, "base64"), imageBase64); }); @@ -55,8 +55,8 @@ describe("CLI", function() { var styleMapPath = path.join(tempDir, "style-map"); fs.writeFileSync(styleMapPath, "p => span:fresh"); return runMammoth(testPath("single-paragraph.docx"), "--style-map", styleMapPath).then(function(result) { - assert.equal(result.stderrOutput, "") - assert.equal(result.output, "<span>Walking on imported air</span>") + assert.equal(result.stderrOutput, ""); + assert.equal(result.output, "<span>Walking on imported air</span>"); }); }); }); |
