Passing test.
This commit is contained in:
8
test.js
8
test.js
@@ -1,9 +1,13 @@
|
|||||||
asyncTest('Simple', function() {
|
QUnit.test('Simple', function(assert) {
|
||||||
|
assert.expect(1);
|
||||||
var context = new rr.Context(mediawiki,
|
var context = new rr.Context(mediawiki,
|
||||||
"=== Heading ===\n\
|
"=== Heading ===\n\
|
||||||
This is a wiki doc.\n\
|
This is a wiki doc.\n\
|
||||||
How about some '''bold and <i>bold italic</i>'''.\n\
|
How about some '''bold and <i>bold italic</i>'''.\n\
|
||||||
I would also love some <nowiki>nowiki <b>foo</b></nowiki>");
|
I would also love some <nowiki>nowiki <b>foo</b></nowiki>");
|
||||||
var iterable = context.rules['wikidoc'].match(context);
|
var iterable = context.rules['wikidoc'].match(context);
|
||||||
console.log(iterable.next());
|
assert.equal(iterable.next().value.nodes[0].innerHTML,
|
||||||
|
"<h3>Heading</h3>This is a wiki doc.\n\
|
||||||
|
How about some <b>bold and <i>bold italic</i></b>.\n\
|
||||||
|
I would also love some nowiki <b>foo</b>");
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user