url.js 611 B

12345678910111213141516171819
  1. var test = require('tape');
  2. var github = require('../');
  3. var packages = {
  4. a : require('./a.json'),
  5. b : require('./b.json'),
  6. c : require('./c.json'),
  7. d : require('./d.json'),
  8. e : require('./e.json')
  9. };
  10. test(function (t) {
  11. t.plan(5);
  12. var url = 'https://github.com/substack/beep-boop';
  13. t.equal(url, github(packages.a), 'a.json comparison');
  14. t.equal(url, github(packages.b), 'b.json comparison');
  15. t.equal(url, github(packages.c), 'c.json comparison');
  16. t.equal(url, github(packages.d), 'd.json comparison');
  17. t.equal(url, github(packages.e), 'e.json comparison');
  18. });