Module:Mainspace editnotice/testcases
Appearance
![]() | This is the test cases page for the module Module:Mainspace editnotice. Results of the test cases. |
-- Unit tests for [[Module:Mainspace editnotice]]. Click talk page to run tests.
local ScribuntoUnit = require('Module:ScribuntoUnit')
local suite = ScribuntoUnit:new()
function suite:assertNoticeEquals(page, notice)
self:assertEquals(
mw.text.killMarkers(suite.frame:preprocess(notice)),
mw.text.killMarkers(suite.frame:preprocess(
'{{#invoke:Mainspace editnotice|main|page='..page..'}}'))
)
end
function suite:testBlp()
self:assertNoticeEquals('Barack Obama', '{{BLP editintro}}')
end
return suite