Skip to content

Commit

Permalink
add negative test case for unicode domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Burns committed Sep 26, 2014
1 parent 007637e commit a562815
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test-valve.js
Expand Up @@ -452,6 +452,7 @@ exports['test_validate_hostname'] = function(test, assert) {
'be-longer-than-the-golden-gate-bridge.let-me-count-this-again-to-make.sure.it-is256.yay' };
var nobj5 = { a: ''};
var nobj6 = { a: 'www..example.com'};
var nobj7 = { a: 'ಠ_ಠ.net' };

async.series([
function pos1(callback) {
Expand Down Expand Up @@ -522,6 +523,13 @@ exports['test_validate_hostname'] = function(test, assert) {
assert.ok(err);
callback();
});
},

function neg7(callback) {
v.check(nobj7, function(err, cleaned) {
assert.ok(err);
callback();
});
}
],

Expand Down

0 comments on commit a562815

Please sign in to comment.