Module:Mainspace editnotice/testcases explained

-- Unit tests for . Click talk page to run tests.

local TfaTitle = require('Module:TFA title')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('')) )end

function suite:testBlp -- In self:assertNoticeEquals('Barack Obama', '') -- In self:assertNoticeEquals('Earl Ashby', '')end

function suite:testDisambig self:assertNoticeEquals('1998 hurricane season', '') self:assertNoticeEquals('M31', '')end

function suite:testRefideas self:assertNoticeEquals('Mobile Suit Victory Gundam', '')end

function suite:testTfa self:assertNoticeEquals(TfaTitle.today_title, '')end

function suite:testDraft -- Disambig page having a draft page self:assertNoticeEquals('Example', '')end

return suite