-
Notifications
You must be signed in to change notification settings - Fork 294
Closed
Description
I just noticed that in the example section for createActions the following example is incorrect
expect(actionTwo('first', 'second')).to.deep.equal({
type: 'ACTION_TWO',
payload: ['first'], // incorrect - no array required
meta: { second: 'second' }
});
The payload is an array with the string 'first' whereas it should be equal to just the string 'first'.
Correct version is as follows:
expect(actionTwo('first', 'second')).to.deep.equal({
type: 'ACTION_TWO',
payload: 'first', // correct
meta: { second: 'second' }
});