Module:About/testcases: Difference between revisions

Content deleted Content added
m Tweaked input to otherText test
added a couple of basic selfref tests
Line 155:
})
self:assertStringContains('This article is about USE1. For other values of otherText, see [[:PAGE1]]', result, true)
end
 
 
--------------------------------------------------------------------------------
-- otherText functionality
--------------------------------------------------------------------------------
 
function suite:testNoSelfref()
local result = about({
[1] = 'USE1',
[2] = 'PAGE1',
}, {namespace = 0})
self:assertNotStringContains('selfref', result, true)
end
 
function suite:testSelfref()
local result = about({
[1] = 'USE1',
[2] = 'PAGE1',
['selfref'] = 'true'
}, {namespace = 0})
self:assertStringContains('selfref', result, true)
end