Jump to content

Module:UserLinks/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Sohom Datta (talk | contribs) at 17:07, 31 August 2024 (tt). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = require('Module:UnitTests')

function p:test_talk()
    self:preprocess_equals('{{#invoke:UserLinks|single|t|user=Example }}', '[[User talk:Example|talk]]')
    self:preprocess_equals('{{#invoke:UserLinks|single|count|user=Example }}', '[[xtools:ec/en.wikipedia.org/Example]]')
end

return p