Jump to content

Module:Citation mode/testcases2

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Hike395 (talk | contribs) at 17:48, 25 December 2024 (test with CS1config). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(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_used()
    local frame = mw.getCurrentFrame()
    frame:expandTemplate{ title = 'CS1 config', args = {mode='cs1'} } 
	self:preprocess_equals('{{#invoke:Citation mode | main | cs2}}', '')
	self:preprocess_equals('{{#invoke:Citation mode/sandbox | main | cs2}}', '')
end

return p