Skip to content

Commit

Permalink
[test] add test case for a function used as interval for rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrugzz committed Jun 5, 2013
1 parent 6073ce8 commit c03fea0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/reactor/rollup-test.js
Expand Up @@ -37,6 +37,16 @@ vows.describe('godot/reactor/rollup').addBatch({
'health',
2,
300
),
"function as interval": macros.shouldEmitData(
godot
.reactor()
.rollup(function (period) {
return period * 100;
}, 2),
'health',
2,
300
)
}
}).export(module);
}).export(module);

0 comments on commit c03fea0

Please sign in to comment.