test/features/lib/eventstreams-util.js
// as many times as there are keys in shouldBe.
as many times as there are keys in shouldBe.
as many times as there are keys in shouldBe .
function makeTestCb(shouldBe, done) {
        let cbCallCount = 0;
        return (key, value) => {
            assert.equal(shouldBe[key], value);
            cbCallCount++;
            if (cbCallCount >= Object.keys(shouldBe).length) {
                done();
            }
        }
    }
function makeTestCb ( shouldBe , done ) { let cbCallCount = 0 ; return ( key , value ) => { assert . equal ( shouldBe [ key ] , value ) ; cbCallCount ++ ; if ( cbCallCount >= Object . keys ( shouldBe ) . length ) { done ( ) ; } } }
as many times as there are keys in shouldBe.
as many times as there are keys in shouldBe .