-
Notifications
You must be signed in to change notification settings - Fork 457
Open
Description
error:
- 03 - What's Your Name? should complete all tasks Task Create test-helpers for all tests #2 - don't greet user if name wasn't provided Should display welcoming message if user didn't provide their name:
AssertionError: If user didn't enter the name (`this.state.name` length is 0), show "Hey there. Enter your name.". See the hint in task's description.
+ expected - actual
-Hey there. Enter your name
+Hey there. Enter your name.
looks like the same;why ?
my code :
render() {
var howdy = "Hello " + this.state.name;
if(this.state.name.length<=0)
howdy ='Hey there. Enter your name';
return (
<div>
<p>{howdy}</p>
<input type="text" name="name" onChange={this.onNameChange} />
</div>
);
}
Metadata
Metadata
Assignees
Labels
No labels