Content deleted Content added
Fred Gandt (talk | contribs) updated tests |
Fred Gandt (talk | contribs) m nowiki not combined to removed from category |
||
Line 7:
function p:test__no_name_param()
self:preprocess_equals('{{#invoke:GetShortDescription|main}}', '<span style="color:#d33">[[Module:GetShortDescription]] requires a page name (including namespace).</span>[[Category:Pages displaying alarming messages about Module:GetShortDescription]]', {
end
function p:test__no_name_value()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=}}', '<span style="color:#d33">[[Module:GetShortDescription]] requires a page name (including namespace).</span>[[Category:Pages displaying alarming messages about Module:GetShortDescription]]', {
end
Line 29:
function p:test__nonexistent_page_name()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=User:Fred Gandt/nonexistent page}}', '<span style="color:#d33">[[Module:GetShortDescription]] could not getContent of [[:User:Fred Gandt/nonexistent page|User:Fred Gandt/nonexistent page]].</span>[[Category:Pages displaying alarming messages about Module:GetShortDescription]]', {
end
|