This commit is contained in:
Belen Curcio
2017-03-29 16:42:59 -03:00
60 changed files with 746 additions and 497 deletions
+11
View File
@@ -249,6 +249,17 @@ describe('services.UsersService', () => {
done();
});
});
it('should not allow non-alphanumeric characters in usernames', () => {
return UsersService
.isValidUsername('hi🖕')
.then(() => {
expect(false).to.be.true;
})
.catch((err) => {
expect(err).to.be.truthy;
});
});
});
});