optimizely / nuclear-js

Reactive Flux built with ImmutableJS data structures. Framework agnostic.
https://optimizely.github.io/nuclear-js/
MIT License
2.23k stars 141 forks source link

use correct property in testing example #179

Closed usirin closed 9 years ago

usirin commented 9 years ago

According to function docs data needs to be iterated over rather than payload itself:

/**
 * @param {Immutable.Map} state
 * @param {Object} payload
 * @param {Object[]} payload.data
 * @return {Immutable.Map} state
 */
bhamodi commented 9 years ago

Thanks @usirin! LGTM. :+1: