var test = require('tape');
var github = require('github-from-package');
var packages = {
    a : require('github-from-package/test/a.json'),
    b : require('github-from-package/test/b.json'),
    c : require('github-from-package/test/c.json'),
    d : require('github-from-package/test/d.json'),
    e : require('github-from-package/test/e.json')
};

test(function (t) {
    t.plan(5);
    var url = 'https://github.com/substack/beep-boop';
    t.equal(url, github(packages.a), 'a.json comparison');
    t.equal(url, github(packages.b), 'b.json comparison');
    t.equal(url, github(packages.c), 'c.json comparison');
    t.equal(url, github(packages.d), 'd.json comparison');
    t.equal(url, github(packages.e), 'e.json comparison');
});
