diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-09-22 22:36:35 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-09-22 22:36:35 +0200 |
commit | 62d0eb606eddfcb9a87b1447dd2e7bf8b389987f (patch) | |
tree | b67616abce2b953ef6528e5fd67cebc79bab4577 /test/codehighlighting.js | |
parent | 0e9beeae14682b8124db3df580a21e6a76cc0805 (diff) | |
download | gitbook-62d0eb606eddfcb9a87b1447dd2e7bf8b389987f.zip gitbook-62d0eb606eddfcb9a87b1447dd2e7bf8b389987f.tar.gz gitbook-62d0eb606eddfcb9a87b1447dd2e7bf8b389987f.tar.bz2 |
Add test for inline code block with html tags
Diffstat (limited to 'test/codehighlighting.js')
-rw-r--r-- | test/codehighlighting.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/codehighlighting.js b/test/codehighlighting.js index d79fc85..5b3902b 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_<test>_code" + } + }); + }); }); |