/**
 * @overview Find resource urls in a html document.
 * @param {object} $ - Cheerio instance.
 * @returns {string[]} - Resource URLs.
 */
module.exports = function ($) {
    var resources = [];
    $('link').each(function () {
        var link = $(this),
            href = link.attr('href');
        resources.push(href);
    });

    return resources;
};