Module:Annotated link/testcases: Difference between revisions

Content deleted Content added
too quick
fix two tests
Line 265:
 
function p:test__categorise_no_space_descriptions()
self:preprocess_equals('{{#invoke:Annotated link|main|name=User:Fred Gandt/sandbox/explicit short description with no spaces}}', '[[:User:Fred Gandt/sandbox/explicit short description with no spaces|User:Fred Gandt/sandbox/explicit short description with no spaces]]&nbsp;– Spacelessness<span style="display:none" class="category-spaceless-annotation">Pages displaying short descriptions with no spaces via Module:Annotated link</span>[[Category:Pages displaying short descriptions with no spaces via Module:Annotated link]]', {nowiki = 1})
end
 
Line 301:
 
function p:test__only_explicit__explicit_does_not_exist__wikidata_exists()
self:preprocess_equals('{{#invoke:Annotated link|main|name=Example|prefer=explicit}}', '[[:Example|Example]]&nbsp;– Wikimedia disambiguation page<span style="display:none" class="category-wikidata-fallback-annotation">Pages displaying wikidata descriptions as a fallback via Module:Annotated link</span>[[Category:Pages displaying wikidata descriptions as a fallback via Module:Annotated link]]', {nowiki = 1})
end