diff options
author | ache <ache@ache.one> | 2018-10-23 03:26:11 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2018-10-23 03:26:11 +0200 |
commit | ea33616b5c7ef9332af3689d97a3f4d1900a2c77 (patch) | |
tree | 8d1371295baae449f660bb42676a76f8868d3f17 /__tests__ | |
parent | Merge branch 'master' of github.com:arobase-che/remark-attr (diff) |
Compatibility with upcomping version of remark-parse
Diffstat (limited to '__tests__')
-rw-r--r-- | __tests__/index.js | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/__tests__/index.js b/__tests__/index.js index f96acd4..a8f4df8 100644 --- a/__tests__/index.js +++ b/__tests__/index.js @@ -159,7 +159,7 @@ This is an awesome code }); test('fenced code brackets', t => { - const fencedCodeString = `~~~lang{info=string} + const fencedCodeString = `~~~lang {info=string} This is an awesome code ~~~ @@ -180,27 +180,3 @@ This is an awesome code </code></pre>`)); }); -test('fenced code fallback', t => { - const fallbackFCstring = `~~~lang -This is an awesome code - -~~~ -{info=string} -`; - const {contents} = render(fallbackFCstring); - t.deepEqual(parse(contents), parse(`<pre><code class="language-lang" info="string">This is an awesome code -</code></pre>`)); -}); - -test('fenced code mix', t => { - const fallbackFCstring = `~~~lang{info=strong} -This is an awesome code - -~~~ -{info=string} -`; - const {contents} = render(fallbackFCstring); - t.deepEqual(parse(contents), parse(`<pre><code class="language-lang" info="string">This is an awesome code -</code></pre>`)); -}); - |