--- id: 5a24c314108439a4d403614e title: Define an Action Creator challengeType: 6 isRequired: false videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof actionCreator === "function", "The function actionCreator should exist.");' - text: '' testString: 'assert(typeof action === "object", "Running the actionCreator function should return the action object.");' - text: '' testString: 'assert(action.type === "LOGIN", "The returned action should have a key property type with value LOGIN.");' ```
## Challenge Seed
```jsx const action = { type: 'LOGIN' } // Define an action creator here: ```
## Solution
```js // solution required ```