cartooncatfish / learn-tdd-with-react-redux

A project used to learn TDD of the React/Redux system.
0 stars 0 forks source link

Add a todo #5

Open cartooncatfish opened 6 years ago

cartooncatfish commented 6 years ago

After adding the follows

AddTodo.propTypes = {
  submitTodo: PropTypes.func.isRequired,
};

Got an error:

 PASS  src/components/addTodo/test.js
  ● Console

    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `submitTodo` is marked as required in `AddTodo`, but its value is `undefined`.
          in AddTodo (at test.js:10)

 PASS  src/App.test.js
  ● Console

    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `submitTodo` is marked as required in `AddTodo`, but its value is `undefined`.
          in AddTodo (at App.js:7)
          in App (at App.test.js:9)

Test Suites: 2 passed, 2 total
Tests:       6 passed, 6 total
Snapshots:   0 total
Time:        1.097s, estimated 2s
Ran all test suites related to changed files.

Watch Usage: Press w to show more.