actionCreator()
that returns the action
object when called.
actionCreator
should exist.
testString: assert(typeof actionCreator === 'function', 'The function actionCreator
should exist.');
- text: Running the actionCreator
function should return the action object.
testString: assert(typeof action === 'object', 'Running the actionCreator
function should return the action object.');
- text: The returned action should have a key property type with value LOGIN
.
testString: assert(action.type === 'LOGIN', 'The returned action should have a key property type with value LOGIN
.');
```