Skip to content

Commit

Permalink
react tutorial: use different division sign
Browse files Browse the repository at this point in the history
  • Loading branch information
evelyn.graumann committed Jan 23, 2020
1 parent 61a0d0c commit 22292be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
.env.development.local
.env.test.local
.env.production.local
.idea

npm-debug.log*
yarn-debug.log*
Expand Down
4 changes: 1 addition & 3 deletions src/components/Key/Key.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ const Key = ({ keyAction, keyType, keyValue }) => (
className={`key-container ${keyType}`}
onClick={() => keyAction(keyValue)}
>
<p className="key-value">
{keyValue}
</p>
<p className="key-value">{(keyValue === '/') ? <span>&#247;</span> : keyValue}</p>
</div>
);

Expand Down
2 changes: 1 addition & 1 deletion src/components/Keypad/Keypad.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('MountedKeypad', () => {

it('renders the values of operators', () => {
wrapper.setProps({operators: ['+', '-', '*', '/']});
expect(wrapper.find('.operators-container').text()).toEqual('+-*/');
expect(wrapper.find('.operators-container').text()).toEqual('+-*÷');
});

it('should render an instance of the Key component', () => {
Expand Down

0 comments on commit 22292be

Please sign in to comment.