| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 1 1 1 1 1 1 1 1 1 | gt.module('npm registry');
var check = require('check-types');
var registryUrl = require('../registryUrl');
gt.asyncTest('getting npm registry url', 2, function () {
var promise = registryUrl();
promise.then(function (url) {
gt.string(url, 'got npm registry url string');
gt.ok(check.webUrl(url), 'registry url', url);
console.log('npm url:', url);
}, function (err) {
gt.ok(false, 'could not get npm registry url');
}).done(gt.start);
});
|