Skip to content

Commit 33a87f4

Browse files
committed
Raise an exception if you have an unknown action.
1 parent ed3c6d7 commit 33a87f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cypress/e2e/trafficlight/trafficlight.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ function runAction(action: string, data: JSONValue): string | undefined {
295295
cy.log('Client asked to exit, test complete or server teardown');
296296
return;
297297
default:
298-
cy.log('WARNING: unknown action ', action);
299-
return;
298+
throw new Error('WARNING: unknown action ', action);
300299
}
301300
}

0 commit comments

Comments
 (0)