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
.");'
```