Module:About/testcases: Difference between revisions

Content deleted Content added
m Forgot to update test string for category namespace
Added test of otherText functionality
Line 140:
}, {namespace = 0})
self:assertStringContains('This article is about USE1. For USE2, see [[:PAGE1]] and [[:PAGE2]]. For USE3, see [[:PAGE3]] and [[:PAGE4]].', result, true)
end
 
--------------------------------------------------------------------------------
-- otherText functionality
--------------------------------------------------------------------------------
 
function suite:otherText()
local result = about({
[1] = 'USE1',
[3] = 'PAGE1'
}, {
namespace = 0,
otherText = 'values of otherText'
})
self:assertStringContains('This article is about USE1. For other values of otherText, see [[:PAGE1]]', result, true)
end