Module:GetShortDescription/testcases: Difference between revisions

Content deleted Content added
moved support pages from my userspace sandbox to subpages of Template:GetShortDescription
few fixes
 
Line 97:
 
function p:test__explicit_exists__wikidata_exists()
self:preprocess_equals('{{#invoke:GetShortDescription|main|stringify=yes|name=Wikipedia}}', "Free online crowd-sourcedcrowdsourced encyclopedia")
end
 
Line 123:
 
function p:test__only_explicit__explicit_exists__wikidata_exists()
self:preprocess_equals('{{#invoke:GetShortDescription|main|stringify=yes|name=Wikipedia|only=explicit}}', "Free online crowd-sourcedcrowdsourced encyclopedia")
end
 
Line 157:
 
function p:test__prefer_explicit__explicit_exists__wikidata_exists()
self:preprocess_equals('{{#invoke:GetShortDescription|main|stringify=yes|name=Wikipedia|prefer=explicit}}', "Free online crowd-sourcedcrowdsourced encyclopedia")
end
 
Line 184:
 
function p:test__conflicting__only_explicit__prefer_wikidata__explicit_exists__wikidata_exists()
self:preprocess_equals('{{#invoke:GetShortDescription|main|stringify=yes|name=Wikipedia|only=explicit|prefer=wikidata}}', "Free online crowd-sourcedcrowdsourced encyclopedia")
end