This commit is contained in:
2025-12-16 13:53:23 +01:00
parent 84f05598a6
commit 29dc11deb9
127 changed files with 538 additions and 547 deletions

View File

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

View File

@@ -24,7 +24,7 @@ export class CheckoutConfirmation {
return CheckoutConfirmation.create('confirmed');
}
static cancelled(_reason?: string): CheckoutConfirmation {
static cancelled(__reason?: string): CheckoutConfirmation {
return CheckoutConfirmation.create('cancelled');
}

View File

@@ -1,5 +1,5 @@
import { describe, it, expect } from 'vitest';
import { CheckoutState, CheckoutStateEnum } from '@core/automation/domain/value-objects/CheckoutState';
/**
* CheckoutState Value Object - GREEN PHASE

View File

@@ -1,5 +1,5 @@
import { describe, it, expect } from 'vitest';
import { SessionState } from '@core/automation/domain/value-objects/SessionState';
describe('SessionState Value Object', () => {
describe('create', () => {
@@ -44,11 +44,11 @@ describe('SessionState Value Object', () => {
});
it('should throw error for invalid state', () => {
expect(() => SessionState.create('INVALID' as any)).toThrow('Invalid session state');
expect(() => SessionState.create('INVALID' as unknown)).toThrow('Invalid session state');
});
it('should throw error for empty string', () => {
expect(() => SessionState.create('' as any)).toThrow('Invalid session state');
expect(() => SessionState.create('' as unknown)).toThrow('Invalid session state');
});
});