Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
pm2 / usr / local / lib / pm2 / node_modules / pac-resolver / test / isPlainHostName.js
Size: Mime:

/**
 * Module dependencies.
 */

var assert = require('assert');
var isPlainHostName = require('../isPlainHostName');

describe('isPlainHostName(host)', function () {

  var tests = [
   ["www", true],
   ["www.netscape.com", false]
  ];

  tests.forEach(function (test) {
    var expected = test.pop();
    it('should return `' + expected +'` for "' + test.join('", "') + '"', function () {
      assert.equal(expected, isPlainHostName(test[0]));
    });
  });

});