website refactor
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { TeamDrivingReasonCode, TEAM_DRIVING_REASON_CODES } from './TeamDrivingReasonCode';
|
||||
import { RacingDomainValidationError } from '../errors/RacingDomainError';
|
||||
|
||||
@@ -35,8 +36,8 @@ describe('TeamDrivingReasonCode', () => {
|
||||
});
|
||||
|
||||
it('should throw error for null/undefined', () => {
|
||||
expect(() => TeamDrivingReasonCode.create(null as any)).toThrow(RacingDomainValidationError);
|
||||
expect(() => TeamDrivingReasonCode.create(undefined as any)).toThrow(RacingDomainValidationError);
|
||||
expect(() => TeamDrivingReasonCode.create(null as unknown as string)).toThrow(RacingDomainValidationError);
|
||||
expect(() => TeamDrivingReasonCode.create(undefined as unknown as string)).toThrow(RacingDomainValidationError);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user