Module:GetShortDescription/sandbox/testcases: Difference between revisions

Content deleted Content added
m ce
fix test expectations since change to named article's SD?
Line 97:
 
function p:test__explicit_exists__wikidata_exists()
self:preprocess_equals('{{#invoke:GetShortDescription/sandbox|main|stringify=yes|name=Wikipedia}}', "Free multilingual, online, crowdsourcedcrowd-sourced encyclopedia")
end
 
Line 123:
 
function p:test__only_explicit__explicit_exists__wikidata_exists()
self:preprocess_equals('{{#invoke:GetShortDescription/sandbox|main|stringify=yes|name=Wikipedia|only=explicit}}', "Free multilingual, online, crowdsourcedcrowd-sourced encyclopedia")
end
 
Line 157:
 
function p:test__prefer_explicit__explicit_exists__wikidata_exists()
self:preprocess_equals('{{#invoke:GetShortDescription/sandbox|main|stringify=yes|name=Wikipedia|prefer=explicit}}', "Free multilingual, online, crowdsourcedcrowd-sourced encyclopedia")
end
 
Line 184:
 
function p:test__conflicting__only_explicit__prefer_wikidata__explicit_exists__wikidata_exists()
self:preprocess_equals('{{#invoke:GetShortDescription/sandbox|main|stringify=yes|name=Wikipedia|only=explicit|prefer=wikidata}}', "Free multilingual, online, crowdsourcedcrowd-sourced encyclopedia")
end