Jump to content

Module:Sister project links/testcases: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
module tests are same as template tests
 
don't need unit test framework (yet)
Line 1: Line 1:
-- Unit tests for [[Module:Sister project links]]. Click talk page to run tests.

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


-- Right now, the tests are done at the template level
-- Right now, the tests are done at the template level

Revision as of 12:46, 25 December 2020

-- Unit tests for [[Module:Sister project links]]. Click talk page to run tests.
local p = {}

-- Right now, the tests are done at the template level
function p:test()
	local frame = mw.getCurrentFrame()
	frame:expandTemplate{title="Sister project links/testcases"}
end

return p