Home
last modified time | relevance | path

Searched refs:testBefore (Results 1 – 1 of 1) sorted by relevance

/plugin/sequencediagram/bower_components/lodash/vendor/underscore/test/
H A Dfunctions.js665 var testBefore = function(beforeAmount, timesCalled) { function
672 assert.equal(testBefore(5, 5), 4, 'before(N) should not fire after being called N times');
673 assert.equal(testBefore(5, 4), 4, 'before(N) should fire before being called N times');
674 assert.equal(testBefore(0, 0), 0, 'before(0) should not fire immediately');
675 assert.equal(testBefore(0, 1), 0, 'before(0) should not fire when first invoked');