startWith.lua 369 B

123456789
  1. describe('startWith', function()
  2. it('produces errors emitted by the source', function()
  3. expect(Rx.Observable.throw():startWith(1).subscribe).to.fail()
  4. end)
  5. it('produces all specified elements in a single onNext before producing values normally', function()
  6. expect(Rx.Observable.fromRange(3, 4):startWith(1, 2)).to.produce({{1, 2}, {3}, {4}})
  7. end)
  8. end)