Skip to content

Commit 571760f

Browse files
authored
Merge pull request #3870 from shu1513/patch-6
Update part6a.md
2 parents 4fff38d + 232e69a commit 571760f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/6/en/part6a.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ const App = () => {
315315
</div>
316316
)
317317
}
318+
export default noteReducer;
318319
```
319320

320321
So far the application does not have the functionality for adding new notes, although it is possible to do so by dispatching <i>NEW\_NOTE</i> actions.
@@ -465,7 +466,7 @@ describe('noteReducer', () => {
465466
})
466467
```
467468

468-
The <i>deepFreeze(state)</i> command ensures that the reducer does not change the state of the store given to it as a parameter. If the reducer uses the _push_ command to manipulate the state, the test will not pass
469+
Run the test with <i>npm test</i>. The <i>deepFreeze(state)</i> command ensures that the reducer does not change the state of the store given to it as a parameter. If the reducer uses the _push_ command to manipulate the state, the test will not pass
469470

470471
![terminal showing test failure and error about not using array.push](../../images/6/2.png)
471472

0 commit comments

Comments
 (0)