Документация
-- Unit tests for [[Module:URL]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_getRefHtml()
    self:preprocess_equals('{{#invoke:Languages | getRefHtmlFrame | }}', '')
    self:preprocess_equals('{{#invoke:Languages | getRefHtmlFrame | QNNN }}', '')
    self:preprocess_equals('{{#invoke:Languages | getRefHtmlFrame | Q1860 }}', '<span class="ref-info" title="Английский язык" style="font-size:85%; cursor:help; color:#888;">(англ.)</span>')
    self:preprocess_equals('{{#invoke:Languages | getRefHtmlFrame | Q7737 }}', '<span class="ref-info" title="Русский язык" style="font-size:85%; cursor:help; color:#888;">(рус.)</span>')
end

return p