From 2c02b7caa502c2ec529b571fd3eb20d77f54d374 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 4 Feb 2015 19:16:02 +0000 Subject: Display images as actual images rather than links in markdown --- tests/writers/markdown-writer.tests.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/writers/markdown-writer.tests.js b/tests/writers/markdown-writer.tests.js index b295d45..7ed5681 100644 --- a/tests/writers/markdown-writer.tests.js +++ b/tests/writers/markdown-writer.tests.js @@ -112,19 +112,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" }); - return assert.equal(writer.asString(), "[Alt Text](http://example.com/image.jpg)"); + 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" }); - return assert.equal(writer.asString(), "[](http://example.com/image.jpg)"); + return assert.equal(writer.asString(), "![](http://example.com/image.jpg)"); }); test('can generate images with misssing src attribute', function() { var writer = mdWriter.writer(); writer.selfClosing("img", { "alt": "Alt Text" }); - return assert.equal(writer.asString(), "[Alt Text]()"); + return assert.equal(writer.asString(), "![Alt Text]()"); }); test("doesn't display empty images", function() { -- cgit v1.2.3