Jump to content

Module:Citation mode/testcases

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Hike395 (talk | contribs) at 17:45, 25 December 2024 (forgot to invoke main). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- 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