From 5fc694319e7daf9c8ab9210eeb07aa6729837922 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 27 Jun 2014 23:07:33 -0700 Subject: [PATCH] Passing test. --- test.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test.js b/test.js index 5e48876..0648a3d 100644 --- a/test.js +++ b/test.js @@ -1,9 +1,13 @@ -asyncTest('Simple', function() { +QUnit.test('Simple', function(assert) { + assert.expect(1); var context = new rr.Context(mediawiki, "=== Heading ===\n\ This is a wiki doc.\n\ How about some '''bold and bold italic'''.\n\ I would also love some nowiki foo"); var iterable = context.rules['wikidoc'].match(context); - console.log(iterable.next()); + assert.equal(iterable.next().value.nodes[0].innerHTML, +"

Heading

This is a wiki doc.\n\ +How about some bold and <i>bold italic</i>.\n\ +I would also love some nowiki <b>foo</b>"); });