Module:Annotated link/testcases: Difference between revisions

Content deleted Content added
m oops
test for |space_cat=
Line 266:
function p:test__categorise_no_space_descriptions()
self:preprocess_equals('{{#invoke:AnnotatedLink|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]] – spacelessness[[Category:Pages displaying short descriptions with no spaces via Module:AnnotatedLink]]", {nowiki = 1})
end
 
function p:test__categorise_no_space_descriptions__space_cat()
self:preprocess_equals('{{#invoke:AnnotatedLink|main|name=User:Fred Gandt/sandbox/explicit short description with no spaces|space_cat=meow}}', "[[:User:Fred Gandt/sandbox/explicit short description with no spaces|User:Fred Gandt/sandbox/explicit short description with no spaces]] – spacelessness", {nowiki = 1})
end