wip league admin tools
This commit is contained in:
@@ -22,7 +22,7 @@ describe('League', () => {
|
||||
name: 'Test League',
|
||||
description: 'A test league',
|
||||
ownerId: 'owner1',
|
||||
})).toThrow('League ID cannot be empty');
|
||||
})).toThrow('League ID is required');
|
||||
});
|
||||
|
||||
it('should throw on invalid name', () => {
|
||||
@@ -31,7 +31,7 @@ describe('League', () => {
|
||||
name: '',
|
||||
description: 'A test league',
|
||||
ownerId: 'owner1',
|
||||
})).toThrow('League name cannot be empty');
|
||||
})).toThrow('League name is required');
|
||||
});
|
||||
|
||||
it('should throw on name too long', () => {
|
||||
@@ -50,7 +50,7 @@ describe('League', () => {
|
||||
name: 'Test League',
|
||||
description: '',
|
||||
ownerId: 'owner1',
|
||||
})).toThrow('League description cannot be empty');
|
||||
})).toThrow('League description is required');
|
||||
});
|
||||
|
||||
it('should throw on description too long', () => {
|
||||
@@ -69,7 +69,7 @@ describe('League', () => {
|
||||
name: 'Test League',
|
||||
description: 'A test league',
|
||||
ownerId: '',
|
||||
})).toThrow('League owner ID cannot be empty');
|
||||
})).toThrow('League owner ID is required');
|
||||
});
|
||||
|
||||
it('should create with social links', () => {
|
||||
|
||||
Reference in New Issue
Block a user