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:50, 25 December 2024 (call outside test?). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.
local p = require('Module:UnitTests')

local frame = mw.getCurrentFrame()
frame:expandTemplate{ title = 'CS1 config', args = {mode='cs1'} } 

function p:test_CS1config_used()
	self:preprocess_equals('{{#invoke:Citation mode | main | cs2}}', '')
	self:preprocess_equals('{{#invoke:Citation mode/sandbox | main | cs2}}', '')
end

return p