mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
add test for empty username
This commit is contained in:
parent
b2d38d1093
commit
cbe2b25835
@ -81,6 +81,10 @@ describe("Crafatar", function() {
|
||||
});
|
||||
|
||||
describe("UUID/username", function() {
|
||||
it("empty username is invalid", function(done) {
|
||||
assert.strictEqual(helpers.id_valid(""), false);
|
||||
done();
|
||||
});
|
||||
it("non-hex uuid is invalid", function(done) {
|
||||
assert.strictEqual(helpers.id_valid("g098cb60fa8e427cb299793cbd302c9a"), false);
|
||||
done();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user