Group names can contain - and end with .app
now that we have decoupled it from mailbox names, this restriction can be removed
This commit is contained in:
@@ -108,7 +108,7 @@ describe('Groups', function () {
|
||||
});
|
||||
|
||||
it('cannot create group - invalid', function (done) {
|
||||
groups.create('cloudron-admin', function (error) {
|
||||
groups.create('cloudron+admin', function (error) {
|
||||
expect(error.reason).to.be(GroupsError.BAD_FIELD);
|
||||
done();
|
||||
});
|
||||
@@ -124,7 +124,7 @@ describe('Groups', function () {
|
||||
|
||||
it('cannot create existing group with mixed case', function (done) {
|
||||
var name = GROUP0_NAME[0].toUpperCase() + GROUP0_NAME.substr(1);
|
||||
groups.create(name, function (error, result) {
|
||||
groups.create(name, function (error) {
|
||||
expect(error.reason).to.be(GroupsError.ALREADY_EXISTS);
|
||||
done();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user