fix typos
Oleksii Markhovskyi committed
Sep 25, 2014 at 09:54 UTC
5493b63b44e82ba6976d84aa4e189ef327afbfd1
1 file changed
+3
-3
docs/_posts/2014-09-24-testing-flux-applications.md
+3
-3
@@ -13,7 +13,7 @@ For a unit test to operate on a truly isolated _unit_ of the application, we nee
13
14
The first steps toward working with Jest are as follows:
15
16
-1. Get the module depencies for the application installed by running `npm install`.
16
+1. Get the module dependencies for the application installed by running `npm install`.
17
2. Create a directory `__tests__/` with a test file, in this case TodoStore-test.js
18
3. Run `npm install jest-cli —save-dev`
19
4. Add the following to your package.json
@@ -86,7 +86,7 @@ expect(all[keys[0]].text).toEqual('foo');
86
Puting it All Together
87
----------------------
88
89
-The example Flux TodoMVC application has been updated with an example test for the TodoStore, but lets's look at an abbreviated version of the entire test. The most important things to notice in this test are how we keep a reference to the store's registered callback in the closure of the test, and how we recreate the store before every test so that we clear the state of the store entirely.
89
+The example Flux TodoMVC application has been updated with an example test for the TodoStore, but let's look at an abbreviated version of the entire test. The most important things to notice in this test are how we keep a reference to the store's registered callback in the closure of the test, and how we recreate the store before every test so that we clear the state of the store entirely.
90
91
```javascript
92
jest.dontMock('../TodoStore');
@@ -313,7 +313,7 @@ render: function() {
313
},
314
```
315
316
-To learn how to test React components themselves, check out the [Jest tutorial for React](http://facebook.github.io/jest/docs/tutorial-react.html) and the [ReactTestUtils documenation](http://facebook.github.io/react/docs/test-utils.html).
316
+To learn how to test React components themselves, check out the [Jest tutorial for React](http://facebook.github.io/jest/docs/tutorial-react.html) and the [ReactTestUtils documentation](http://facebook.github.io/react/docs/test-utils.html).
317
318
319
Further Reading