Template:Documentation/preload-module-testcases: Difference between revisions

Content deleted Content added
template
 
{{Preloaded template}}
 
(4 intermediate revisions by 4 users not shown)
Line 1:
-- For example unitUnit tests, seefor [[Module:Bananas/tests{{ROOTPAGENAME}}]]. Click talk page to run tests.
local p = {}require('Module:UnitTests')
 
-- Example unit test.
function p.hello:test_hello()
return "Hello, world!"
self:preprocess_equals('{{#invoke:Example | hello}}', 'Hello, world!')
end
 
return p<noinclude>
{{Documentation|content={{Preloaded template|[[Module:Documentation/config#L-257]]}}}}
</noinclude>