Open Tracis opened 6 years ago
The part of Stateful components has a line:
Stateful components
this.state = { currentEnthusiasm: props.enthusiasmLevel || 1 };
When enthusiasmLevel is 0, it will be default set 1. So throw new Error will not work.
throw new Error
if (this.state.currentEnthusiasm <= 0) { throw new Error('You could be a little more enthusiastic. :D'); }
This also causes the tests to fail...
The part of
Stateful components
has a line:When enthusiasmLevel is 0, it will be default set 1. So
throw new Error
will not work.