Module:Mainspace editnotice/testcases: Difference between revisions
Appearance
Content deleted Content added
start testcases |
(No difference)
|
Revision as of 16:46, 29 January 2024
![]() | 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 p = require('Module:UnitTests')
function p:assertNoticeEquals(page, notice)
self:preprocess_equals_preprocess('{{#invoke:Mainspace editnotice|main|'..page..'}}',
notice, {nowiki=1})
end
function p:testBlp()
self:assertNoticeEquals('Barack Obama', '{{BLP editintro}}')
end
return p