These are chat archives for pozadi/kefir

19th
Nov 2015
Elia Schelokov
@thaumant
Nov 19 2015 09:29
@voy: may be too late but still:
var toArray = (arr, e) => { arr.push(e); return arr },
    timeout = Kefir.later(1500, 1)

return stream
    .takeUntilBy(timeout)
    .scan(toArray, [])
    .toPromise()
    .then(events => {
        assert.lengthOf(events, 2)
        assert.deepEqual(e[0], sample0)
        assert.deepEqual(e[1], sample1)
    })