Jump to content

Module:Sandbox/Izno/citationTests

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Izno (talk | contribs) at 19:59, 10 March 2019 (poke). 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)
local myModule = require('Module:Citation/CS1') -- the module to be tested
local ScribuntoUnit = require('Module:ScribuntoUnit')
local suite = ScribuntoUnit:new()

function suite:testBasic()
	self:assertTemplateEquals(
		'',
		'cite web',
		{
			'website=Website',
			'last=Last',
			'first=First',
			'url=https://en.wikipedia.org/',
			'date=1 January 2010'
		}
	)
end