Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module:POTD kind/testcases

From Wikipedia, the free encyclopedia
-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_kind()
	local tests = {
		['2026-01-18']='video',    -- [[Template:POTD protected/2026-01-18]]
		['2026-01-20']='pictures', -- [[Template:POTD protected/2026-01-20]]
		['2026-01-29']='picture',  -- [[Template:POTD protected/2026-01-29]]
		['2026-01-30']='video',    -- [[Template:POTD protected/2026-01-30]]
	}
	for date, expected_result in pairs(tests)
	do
		self:preprocess_equals('{{#invoke:POTD kind|kind|date=' .. date .. '}}', expected_result)
	end
end

return p