Jump to content

Module:YouTubeSubscribers/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by BrokenSegue (talk | contribs) at 01:09, 18 February 2023. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = require('Module:UnitTests')

function p:test_YT_subCount()
    self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCount|qid=Q111862397}}', '')
    self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCount|qid=Q24088544}}', '')
    self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCount|qid=Q5}}', '')
    
end

function p:test_YT_date()
    self:preprocess_equals('{{#invoke:YouTubeSubscribers|date|qid=Q111862397}}', '')
    self:preprocess_equals('{{#invoke:YouTubeSubscribers|date|qid=Q24088544}}', '')
    self:preprocess_equals('{{#invoke:YouTubeSubscribers|date|qid=5}}', '')
    
end

return p