Fix assert call for subscriptions
This commit is contained in:
@@ -84,7 +84,7 @@ function choo () {
|
|||||||
// react to actions (read-only)
|
// react to actions (read-only)
|
||||||
_models.forEach(function (model) {
|
_models.forEach(function (model) {
|
||||||
if (model.subscriptions) {
|
if (model.subscriptions) {
|
||||||
assert.ok(Array.isArray(model.subscriptions, 'subs must be an array'))
|
assert.ok(Array.isArray(model.subscriptions), 'subs must be an array')
|
||||||
model.subscriptions.forEach(function (sub) {
|
model.subscriptions.forEach(function (sub) {
|
||||||
sub(send)
|
sub(send)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user