1 QUnit
.module( 'mediawiki.api.parse', QUnit
.newMwEnvironment() );
3 QUnit
.asyncTest( 'Simple', function ( assert
) {
9 api
.parse( "'''Hello world'''" )
10 .done( function ( html
) {
11 // Html also contains "NewPP report", so only check the first part
12 assert
.equal( html
.substr( 0, 25 ), '<p><b>Hello world</b></p>',
13 'Wikitext to html parsing works.'