Module:Template test case: Difference between revisions

Content deleted Content added
protect call templateObj:getOutput()
protect calling self._invocation:getOutput{...}
Line 156:
 
function Template:getOutput()
local protect = require('Module:Protect')
return-- calling self._invocation:getOutput{...}
return protect(self._invocation.getOutput)(self._invocation, {
template = self:getName(),
requireMagicWord = self.requireMagicWord,
})
end
 
Line 302 ⟶ 304:
 
function TestCase:getTemplateOutput(templateObj)
local protectoutput = require('ModuletemplateObj:Protect'getOutput()
-- calling templateObj:getOutput()
local output = protect(templateObj.getOutput)(templateObj)
if self.options.resetRefs then
mw.getCurrentFrame():extensionTag('references')