This commit is contained in:
2025-12-12 23:49:56 +01:00
parent cae81b1088
commit 8f1db21fb1
29 changed files with 879 additions and 399 deletions

View File

@@ -19,7 +19,7 @@ describe('CheckoutConfirmation Value Object', () => {
});
it('should throw error for invalid decision', () => {
expect(() => CheckoutConfirmation.create('invalid')).toThrow(
expect(() => CheckoutConfirmation.create('invalid' as any)).toThrow(
'Invalid checkout confirmation decision',
);
});

View File

@@ -44,11 +44,11 @@ describe('SessionState Value Object', () => {
});
it('should throw error for invalid state', () => {
expect(() => SessionState.create('INVALID')).toThrow('Invalid session state');
expect(() => SessionState.create('INVALID' as any)).toThrow('Invalid session state');
});
it('should throw error for empty string', () => {
expect(() => SessionState.create('')).toThrow('Invalid session state');
expect(() => SessionState.create('' as any)).toThrow('Invalid session state');
});
});