Jump to content

Module:Mock title/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mr. Stradivarius (talk | contribs) at 02:25, 28 February 2021 (should be prefixedText, not prefixedIndex). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local mMockTitle = require("Module:Mock title")
local ScribuntoUnit = require("Module:ScribuntoUnit")

local suite = ScribuntoUnit:new()

--------------------------------------------------------------------------------
-- MockTitle tests
--------------------------------------------------------------------------------

suite["test MockTitle: when using a page name, the prefixedText property equals the page name"] = function (self)
	self:assertEquals("Example", mMockTitle.MockTitle({page = "Example"}).prefixedText)
end

return suite