Module:Item infobox/testcases/edible by: Difference between revisions

From Space Station 14 Wiki
Aliser (talk | contribs)
Created page with "local p = require('Module:MyModule') -- the module to be tested local ScribuntoUnit = require('Module:ScribuntoUnit') local suite = ScribuntoUnit:new() local frame = mw.getCurrentFrame() function suite:test_empty() frame.args = {} self:assertEquals('', p.generate_edible_by(frame)) end return suite"
 
Aliser (talk | contribs)
No edit summary
Line 1: Line 1:
local p = require('Module:MyModule') -- the module to be tested
local p = require('Module:Item infobox') -- the module to be tested
local ScribuntoUnit = require('Module:ScribuntoUnit')
local ScribuntoUnit = require('Module:ScribuntoUnit')
local suite = ScribuntoUnit:new()
local suite = ScribuntoUnit:new()

Revision as of 01:11, 4 April 2025

Documentation for this module may be created at Module:Item infobox/testcases/edible by/doc

local p = require('Module:Item infobox') -- the module to be tested
local ScribuntoUnit = require('Module:ScribuntoUnit')
local suite = ScribuntoUnit:new()

local frame = mw.getCurrentFrame()

function suite:test_empty()
	frame.args = {}
	
    self:assertEquals('', p.generate_edible_by(frame))
end

return suite