diff options
author | ache <ache@ache.one> | 2018-04-29 11:17:34 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2018-04-29 11:17:34 +0200 |
commit | a2b8fe9f8bddf59def0bcadcec896b0a55ac8513 (patch) | |
tree | eed94a3fa41897a34f07d0163327876c55d610b6 /__tests__ | |
parent | Fix bugs and tests (diff) |
Fix eatten value with md-attr-parser
Diffstat (limited to '__tests__')
-rw-r--r-- | __tests__/index.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/__tests__/index.js b/__tests__/index.js index 38a3dbf..9f256b0 100644 --- a/__tests__/index.js +++ b/__tests__/index.js @@ -97,10 +97,15 @@ _______]`); test('simple-raw2', t => { const {contents} = renderRaw('[____\nHere some text\n____]\n\n<div>Yeah !</div>'); - t.is(contents.toLowerCase(), '<textarea>here some text</textarea>'); + console.log('@@' + contents.toLowerCase() + '@@'); + t.is(contents.toLowerCase(), '<textarea>here some text</textarea>\n<div>yeah !</div>'); +}); + +test('id', t => { + const {contents} = renderRaw('[____\nHere some text\n____]{#id}'); + t.is(contents.toLowerCase(), '<textarea id="id">here some text</textarea>'); }); -test.todo('id text'); test.todo('class'); test.todo('classes'); test.todo('key-value'); |