Module:User error/testcases

local userError = require('Module:User error') local ScribuntoUnit = require('Module:ScribuntoUnit') local suite = ScribuntoUnit:new

function suite:test_works self:assertEquals(' Error: message. ', userError('message')) end

function suite:test_categories_work self:assertEquals(' Error: message. ', userError('message', 'cat1', 'cat2')) end

return suite