wip league admin tools
This commit is contained in:
@@ -5,7 +5,7 @@ describe('TrackName', () => {
|
||||
it('should create track name', () => {
|
||||
const name = TrackName.create('Silverstone');
|
||||
expect(name.toString()).toBe('Silverstone');
|
||||
expect(name.props).toBe('Silverstone');
|
||||
expect(name.value).toBe('Silverstone');
|
||||
});
|
||||
|
||||
it('should trim whitespace', () => {
|
||||
@@ -14,8 +14,8 @@ describe('TrackName', () => {
|
||||
});
|
||||
|
||||
it('should throw for empty name', () => {
|
||||
expect(() => TrackName.create('')).toThrow('Track name is required');
|
||||
expect(() => TrackName.create(' ')).toThrow('Track name is required');
|
||||
expect(() => TrackName.create('')).toThrow('Track name cannot be empty');
|
||||
expect(() => TrackName.create(' ')).toThrow('Track name cannot be empty');
|
||||
});
|
||||
|
||||
it('should equal same names', () => {
|
||||
|
||||
Reference in New Issue
Block a user