From 472cd053aab1432d19f9deebb6141567bbe91ff6 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 8 Jul 2014 10:25:57 +0100 Subject: Use jshint and fix errors --- tests/main.tests.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'tests/main.tests.js') 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, "

Walking on imported air

") + assert.equal(result.stderrOutput, ""); + assert.equal(result.output, "

Walking on imported air

"); }); }); @@ -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"), "

Walking on imported air

"); }); }); @@ -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, '

') + assert.equal(result.stderrOutput, ""); + assert.equal(result.output, '

'); }); }); @@ -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"), '

'); 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, "Walking on imported air") + assert.equal(result.stderrOutput, ""); + assert.equal(result.output, "Walking on imported air"); }); }); }); -- cgit v1.2.3