Module:TrainingPages/testcases: Difference between revisions

Content deleted Content added
No edit summary
m that was it. These unit tests... one error and you might as well throw out and start from scratch
Line 18:
self:preprocess_equals_many('{{#invoke:TrainingPages|page_number|', '}}', {
{ 'index=Wikipedia:Training/For students/Nonexistent index|defaultpage=|noerr=yes', '' },
{ 'index=Wikipedia:Training/For students/Nonexistent index|defaultpage=', '"[[Module:TrainingPages]] error (''index' parameter):failed to access mw.title.new(Wikipedia:Training/For students/Nonexistent index):getContent() to load the index data'" },
})
self:preprocess_equals_many('{{#invoke:TrainingPages|page_numbermain|', '}}', {
{ 'index=Wikipedia:Training/For students/Editing module index|page=1', 'Wikipedia:Training/For students/valuable contribution' }
})