User:Evad37/Covery/sandbox.js: Difference between revisions

Content deleted Content added
.
.
Line 1,063:
};
mw.loader.using('jquery.qunit').then(function() {
QUnit.start();
QUnit.module('Get parameters from a template');
QUnit.test('Single unnamed param', function(assert) {
Line 1,089 ⟶ 1,091:
assert.deepEqual(params1, expected1, 'unspaced');
assert.deepEqual(params2, expected2, 'spaced');
});
});
QUnit.start();
QUnit.test('Two unnamed params', function(assert) {
var params1 = getTemplateParameters('|one|two');
Line 1,131 ⟶ 1,135:
assert.deepEqual(params1, expected1, 'unspaced');
assert.deepEqual(params2, expected2, 'spaced');
});
});
QUnit.start();
QUnit.test('Single named param', function(assert) {
var params1 = getTemplateParameters('|a=apple');