Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Fix typos #215

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ For it to run correctly, we'll need to initialize a git repository.
```sh
git init
git add .
git commit -m "Initial commit."
git commit -m "Initial commit"
```

> Note: if you've cloned this repository, you won't have to run the above at all.
Expand Down Expand Up @@ -408,12 +408,12 @@ import Hello from './Hello';

it('renders the correct text when no enthusiasm level is given', () => {
const hello = enzyme.shallow(<Hello name='Daniel' />);
expect(hello.find(".greeting").text()).toEqual('Hello Daniel!')
expect(hello.find(".greeting").text()).toEqual('Hello Daniel!');
});

it('renders the correct text with an explicit enthusiasm of 1', () => {
const hello = enzyme.shallow(<Hello name='Daniel' enthusiasmLevel={1}/>);
expect(hello.find(".greeting").text()).toEqual('Hello Daniel!')
expect(hello.find(".greeting").text()).toEqual('Hello Daniel!');
});

it('renders the correct text with an explicit enthusiasm level of 5', () => {
Expand Down Expand Up @@ -656,7 +656,7 @@ export function mapStateToProps({ enthusiasmLevel, languageName }: StoreState) {
return {
enthusiasmLevel,
name: languageName,
}
};
}
```

Expand All @@ -670,7 +670,7 @@ export function mapDispatchToProps(dispatch: Dispatch<actions.EnthusiasmAction>)
return {
onIncrement: () => dispatch(actions.incrementEnthusiasm()),
onDecrement: () => dispatch(actions.decrementEnthusiasm()),
}
};
}
```

Expand All @@ -696,14 +696,14 @@ export function mapStateToProps({ enthusiasmLevel, languageName }: StoreState) {
return {
enthusiasmLevel,
name: languageName,
}
};
}

export function mapDispatchToProps(dispatch: Dispatch<actions.EnthusiasmAction>) {
return {
onIncrement: () => dispatch(actions.incrementEnthusiasm()),
onDecrement: () => dispatch(actions.decrementEnthusiasm()),
}
};
}

export default connect(mapStateToProps, mapDispatchToProps)(Hello);
Expand Down