diff --git a/test.js b/test.js index e5023b9..45e6833 100644 --- a/test.js +++ b/test.js @@ -33,7 +33,8 @@ QUnit.test('Base', function(assert) { ";I don't really understand what a definition is", ': But blockquotes are easy', ':: Even larger ones', - '::::: And really huge ones' + '::::: And really huge ones', + ' This line is pre-formatted and not interpolated' ].join('\n'); var expected = [ @@ -54,10 +55,13 @@ QUnit.test('Base', function(assert) { 'Item 2Item 3Item 1c', "I don't really understand what a definition is
", 'But blockquotes are easy
Even larger ones', - 'And really huge ones

' + 'And really huge ones
This ',
+    'line is pre-formatted and <del>not interpolated</del>',
+    '

' ].join(''); var context = new rr.Context(mediawiki, content); var iterable = context.rules['wikidoc'].match(context); assert.equal(iterable.next().value.nodes[0].innerHTML, expected); + console.log(expected); });