Asserts a condition is true, otherwise throws an Error.
The boolean condition that must be true
Optional
The error message to throw if the condition is false
If the condition evaluates to false
assertCondition(user.isLoggedIn, 'User must be logged in'); Copy
assertCondition(user.isLoggedIn, 'User must be logged in');
Asserts a condition is true, otherwise throws an Error.