Module:GetShortDescription/testcases: Difference between revisions

Content deleted Content added
update expectations since correcting WP:SDFORMAT on test pages
handling of unknown params in explicit short descriptions...
Line 26:
end
 
--[[ unknown param offered ]]
 
function p:test__no_unknown_valuetest__no_unknown_value_offered()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=User:Fred Gandt/sandbox/explicit short description|unknown=}}', "Explicit short description")
end
 
function p:test__unknown_valuetest__unknown_param_offered()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=User:Fred Gandt/sandbox/explicit short description|unknown=unknown}}', "Explicit short description")
end
 
--[[ unknown param found ]]
 
function p:test__unknown_param_found()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=User:Fred Gandt/sandbox/explicit short description with unknown params}}', "Explicit short description with unknown params")
end