From 4c816eb8da5daf58faa1dbd75cc59fdacad40561 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Mon, 30 Jun 2014 20:11:14 -0700 Subject: [PATCH] Add test for pre-formatted list-type line. --- test.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); });