You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
340 B
JavaScript
13 lines
340 B
JavaScript
11 years ago
|
var assert = require('assert'),
|
||
|
utils = require('./../public/src/utils.js');
|
||
|
|
||
|
|
||
|
describe("Utility Methods", function(){
|
||
|
describe("username validation", function(){
|
||
|
it("accepts latin-1 characters", function(){
|
||
|
var username = "John\"'-. Doeäâèéë1234";
|
||
|
assert(utils.isUserNameValid(username), 'invalid username');
|
||
|
});
|
||
|
});
|
||
|
});
|