From 62d0eb606eddfcb9a87b1447dd2e7bf8b389987f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Tue, 22 Sep 2015 22:36:35 +0200 Subject: [PATCH] Add test for inline code block with html tags --- test/books/highlight/README.md | 3 ++- test/codehighlighting.js | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/test/books/highlight/README.md b/test/books/highlight/README.md index 417fabc91..f47ac835c 100644 --- a/test/books/highlight/README.md +++ b/test/books/highlight/README.md @@ -12,4 +12,5 @@ Block with a language test 2 ``` -Inline code: `test 3` \ No newline at end of file +Inline code: `test 3` +Inline code with html: `` \ No newline at end of file diff --git a/test/codehighlighting.js b/test/codehighlighting.js index d79fc852d..5b3902b9f 100644 --- a/test/codehighlighting.js +++ b/test/codehighlighting.js @@ -52,5 +52,14 @@ describe("Code Highlighting", function () { } }); }); + + it("should correctly replace highlighting for inline code with html tags", function() { + PAGE.should.be.html({ + "code": { + index: 2, + text: "code__code" + } + }); + }); });