working companion prototype
This commit is contained in:
@@ -129,16 +129,16 @@ describe('StepTransitionValidator Service', () => {
|
||||
});
|
||||
|
||||
describe('shouldStopAtStep18', () => {
|
||||
it('should return true when transitioning to step 18', () => {
|
||||
const nextStep = StepId.create(18);
|
||||
it('should return true when transitioning to step 17 (final step)', () => {
|
||||
const nextStep = StepId.create(17);
|
||||
|
||||
const shouldStop = StepTransitionValidator.shouldStopAtStep18(nextStep);
|
||||
|
||||
expect(shouldStop).toBe(true);
|
||||
});
|
||||
|
||||
it('should return false for steps before 18', () => {
|
||||
const nextStep = StepId.create(17);
|
||||
it('should return false for steps before 17', () => {
|
||||
const nextStep = StepId.create(16);
|
||||
|
||||
const shouldStop = StepTransitionValidator.shouldStopAtStep18(nextStep);
|
||||
|
||||
@@ -171,8 +171,8 @@ describe('StepTransitionValidator Service', () => {
|
||||
expect(description).toBe('Add Admin (Modal)');
|
||||
});
|
||||
|
||||
it('should return description for step 18 (final)', () => {
|
||||
const step = StepId.create(18);
|
||||
it('should return description for step 17 (final)', () => {
|
||||
const step = StepId.create(17);
|
||||
|
||||
const description = StepTransitionValidator.getStepDescription(step);
|
||||
|
||||
@@ -195,7 +195,7 @@ describe('StepTransitionValidator Service', () => {
|
||||
const state = SessionState.create('IN_PROGRESS');
|
||||
let currentStep = StepId.create(1);
|
||||
|
||||
for (let i = 2; i <= 18; i++) {
|
||||
for (let i = 2; i <= 17; i++) {
|
||||
const nextStep = StepId.create(i);
|
||||
const result = StepTransitionValidator.canTransition(currentStep, nextStep, state);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user