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

Content deleted Content added
tab
No reason why this needs to be manually changed by users. It should automatically have the actual module name.
Line 1:
-- Example Unit tests for [[Module:Bananas{{ROOTPAGENAME}}]]. Click talk page to run tests.
local p = require('Module:UnitTests')
 
-- Example unit test.
function p:test_hello()
self:preprocess_equals('{{#invoke:Bananas | hello}}', 'Hello, world!')