Module:GetShortDescription/testcases: Difference between revisions

Content deleted Content added
removed practically unhandleable whitespace tests
nowiki html output
Line 7:
 
function p:test__no_name_param()
self:preprocess_equals('{{#invoke:GetShortDescription|main}}', '<strong class="error">ERROR with invocation of [[Module:GetShortDescription]]: a page name (including namespace) MUST be provided</strong>', {nowiki = 1})
end
 
function p:test__no_name_value()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=}}', '<strong class="error">ERROR with invocation of [[Module:GetShortDescription]]: a page name (including namespace) MUST be provided</strong>', {nowiki = 1})
end