Jump to content

Module:Mainspace editnotice/testcases: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
start testcases
(No difference)

Revision as of 16:46, 29 January 2024

-- 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