Jump to content

Module:Sister project links/testcases: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
don't need unit test framework (yet)
testcases = comment for now
Line 1: Line 1:
-- TODO: write Lua test cases.
-- Unit tests for [[Module:Sister project links]]. Click talk page to run tests.
-- For now, testing occurs at the template level: see [[Template:Sister project links/testcases]]
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

Revision as of 12:52, 25 December 2020

-- TODO: write Lua test cases.
-- For now, testing occurs at the template level: see [[Template:Sister project links/testcases]]