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>"); });