Open pleopardi opened 6 years ago
Without this PR, when props.enthusiasmLevel is set to 0, the expression props.enthusiasmLevel || 1 always equals to 1. Therefore the render doesn't throw as expected and one of the tests fails.
props.enthusiasmLevel
props.enthusiasmLevel || 1
Without this PR, when
props.enthusiasmLevel
is set to 0, the expressionprops.enthusiasmLevel || 1
always equals to 1. Therefore the render doesn't throw as expected and one of the tests fails.