From a2b8fe9f8bddf59def0bcadcec896b0a55ac8513 Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 29 Apr 2018 11:17:34 +0200 Subject: Fix eatten value with md-attr-parser --- __tests__/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to '__tests__') 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
Yeah !
'); - t.is(contents.toLowerCase(), ''); + console.log('@@' + contents.toLowerCase() + '@@'); + t.is(contents.toLowerCase(), '\n
yeah !
'); +}); + +test('id', t => { + const {contents} = renderRaw('[____\nHere some text\n____]{#id}'); + t.is(contents.toLowerCase(), ''); }); -test.todo('id text'); test.todo('class'); test.todo('classes'); test.todo('key-value'); -- cgit v1.2.3