Jump to content

Module:Citation mode/testcases

From Wikipedia, the free encyclopedia
-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.
local p = require('Module:UnitTests')

-- Example unit test.
function p:test_CS1config_not_used()
	self:preprocess_equals('{{#invoke:Citation mode | main | cs2}}', ' cs2')
	self:preprocess_equals('{{#invoke:Citation mode/sandbox | main | cs2}}', ' cs2')
end

return p