Editing Module:Template test case
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 160: | Line 160: | ||
function Template:getOutput() | function Template:getOutput() | ||
return self._invocation:getOutput{ | |||
template = self:getName(), | template = self:getName(), | ||
requireMagicWord = self.requireMagicWord, | requireMagicWord = self.requireMagicWord, | ||
} | } | ||
end | end | ||
Line 311: | Line 309: | ||
function TestCase:getTemplateOutput(templateObj) | function TestCase:getTemplateOutput(templateObj) | ||
local output = templateObj | local protect = require('Module:Protect') | ||
-- calling templateObj:getOutput() | |||
local output = protect(templateObj.getOutput)(templateObj) | |||
if self.options.resetRefs then | if self.options.resetRefs then | ||
mw.getCurrentFrame():extensionTag('references') | mw.getCurrentFrame():extensionTag('references') |