Module:GetShortDescription/testcases: Difference between revisions

Content deleted Content added
updated tests
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]]', {combinednowiki = 1})
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]]', {combinednowiki = 1})
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]]', {combinednowiki = 1})
end