actionCreator()的函数,该函数在调用时返回action对象。 actionCreator应该存在。
testString: 'assert(typeof actionCreator === "function", "The function actionCreator should exist.");'
- text: 运行actionCreator函数应该返回操作对象。
testString: 'assert(typeof action === "object", "Running the actionCreator function should return the action object.");'
- text: 返回的操作应具有值为LOGIN的键属性类型。
testString: 'assert(action.type === "LOGIN", "The returned action should have a key property type with value LOGIN.");'
```