aboutsummaryrefslogtreecommitdiff
path: root/tests/writers
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-06-28 20:58:49 +0100
committerMichael Williamson <mike@zwobble.org>2016-06-28 20:58:49 +0100
commitd046c4297a04b6eecadf01093382b72bb1b71032 (patch)
treed90fc8dde051f2dba93c41f77506f472269124ba /tests/writers
parentf557dc7de5fd0dff3a08808e7c4d9736970e6349 (diff)
Replace jshint with eslint
Diffstat (limited to 'tests/writers')
-rw-r--r--tests/writers/markdown-writer.tests.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/writers/markdown-writer.tests.js b/tests/writers/markdown-writer.tests.js
index 8d05ff6..38d2afe 100644
--- a/tests/writers/markdown-writer.tests.js
+++ b/tests/writers/markdown-writer.tests.js
@@ -69,7 +69,7 @@ describe('markdown-writer', function() {
test('anchor tags are written as hyperlinks', function() {
var writer = mdWriter.writer();
- writer.open("a", { "href": "http://example.com" });
+ writer.open("a", {"href": "http://example.com"});
writer.text("Hello");
writer.close("a");
return assert.equal(writer.asString(), "[Hello](http://example.com)");
@@ -101,19 +101,19 @@ describe('markdown-writer', function() {
test('can generate images', function() {
var writer = mdWriter.writer();
- writer.selfClosing("img", { "src": "http://example.com/image.jpg", "alt": "Alt Text" });
+ writer.selfClosing("img", {"src": "http://example.com/image.jpg", "alt": "Alt Text"});
return assert.equal(writer.asString(), "![Alt Text](http://example.com/image.jpg)");
});
test('can generate images with missing alt attribute', function() {
var writer = mdWriter.writer();
- writer.selfClosing("img", { "src": "http://example.com/image.jpg" });
+ writer.selfClosing("img", {"src": "http://example.com/image.jpg"});
return assert.equal(writer.asString(), "![](http://example.com/image.jpg)");
});
test('can generate images with missing src attribute', function() {
var writer = mdWriter.writer();
- writer.selfClosing("img", { "alt": "Alt Text" });
+ writer.selfClosing("img", {"alt": "Alt Text"});
return assert.equal(writer.asString(), "![Alt Text]()");
});