Module:GetShortDescription/testcases: Difference between revisions

Content deleted Content added
disabling tests for "test__two_short_descriptions_numbered_after" and "test__two_short_descriptions_numbered_before" requiring alternative solution
fixed tests re return of "table"; need to read the docs for this...
Line 105:
 
function p:test__explicit_does_not_exist__wikidata_exists()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=Example}}', "Wikimedia disambiguation pagetable")
end
 
Line 169:
 
function p:test__prefer_explicit__explicit_does_not_exist__wikidata_exists()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=Example|prefer=explicit}}', "Wikimedia disambiguation pagetable")
end
 
Line 191:
 
function p:test__fallback__explicit_does_not_exist__wikidata_exists()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=Example|fallback=fallback}}', "Wikimedia disambiguation pagetable")
end
 
Line 255:
 
function p:test__prefer_explicit__fallback__explicit_does_not_exist__wikidata_exists()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=Example|prefer=explicit|fallback=fallback}}', "Wikimedia disambiguation pagetable")
end