Difference between revisions of "Module:UserLinks/testcases"

From blackwiki
Jump to navigation Jump to search
blackwiki>John Vandenberg
(start)
 
blackwiki>John Vandenberg
(fix)
Line 2: Line 2:
  
 
function p:test_talk()
 
function p:test_talk()
     self:preprocess_equals('{{#invoke:UserLinks | single | user=Example | t }}', '[[User talk:Example]]')
+
     self:preprocess_equals('{{#invoke:UserLinks | single | t | user=Example }}', '[[User talk:Example]]')
 
end
 
end
  
 
return p
 
return p

Revision as of 09:44, 21 January 2014

Documentation for this module may be created at Module:UserLinks/testcases/doc

local p = require('Module:UserLinks')

function p:test_talk()
    self:preprocess_equals('{{#invoke:UserLinks | single | t | user=Example }}', '[[User talk:Example]]')
end

return p