Module:Annotated link/testcases: Difference between revisions

Content deleted Content added
use new "combined" option; thanks to User:Aidan9382
calming the error messages down a bit; also for the record: I have no intention of creating tests for alarming messages that can be returned by Module:GetShortDescription here
Line 7:
 
function p:test__no_name_param()
self:preprocess_equals('{{#invoke:AnnotatedLink|main}}', '<strongspan classstyle="errorcolor:#d33">ERROR with invocation of [[Module:AnnotatedLink]]: requires a page name (including namespace) MUST be provided.</strongspan>', { combined = 1 })
end
 
function p:test__no_name_value()
self:preprocess_equals('{{#invoke:AnnotatedLink|main|name=}}', '<strongspan classstyle="errorcolor:#d33">ERROR with invocation of [[Module:AnnotatedLink]]: requires a page name (including namespace) MUST be provided.</strongspan>', { combined = 1 })
end