Files
Testing/html5-chat1/nodeMulti/node_modules/pac-resolver/test/isPlainHostName.js
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

24 lines
468 B
JavaScript

/**
* 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]));
});
});
});