aboutsummaryrefslogtreecommitdiff
path: root/tests/main.tests.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-07-08 10:25:57 +0100
committerMichael Williamson <mike@zwobble.org>2014-07-08 10:25:57 +0100
commit472cd053aab1432d19f9deebb6141567bbe91ff6 (patch)
tree2d328353ebd0947e8007267592e45bdd0d879730 /tests/main.tests.js
parent40fc65d1f2874eb707a4fb4e93c4a66ccd59f850 (diff)
Use jshint and fix errors
Diffstat (limited to 'tests/main.tests.js')
-rw-r--r--tests/main.tests.js20
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>");
});
});
});