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:10, 31 August 2024 (more 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/sandbox|single|ct|user=xample }}', '[[xtools:ec/en.wikipedia.org/Example|count]]')
end

return p