Skip to content

Commit 74c89d2

Browse files
Merge pull request #14 from matrix-org/michaelk/raise_exception_for_unknown_action
Raise an exception if you have an unknown action.
2 parents ed3c6d7 + 2775173 commit 74c89d2

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)