Module:Mock title/testcases
Appearance
![]() | This is the test cases page for the module Module:Mock title. Results of the test cases. |
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