Jump to content

Module:Mainspace editnotice/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by SD0001 (talk | contribs) at 16:46, 29 January 2024 (start testcases). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- 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