Skip to content

Support select().observable in mockDOMSource

Choose a tag to compare

@staltz staltz released this 19 Feb 08:31
· 173 commits to master since this release

It's now possible to mock select('.foo').observable using mockDOMSource:

const userEvents = mockDOMSource({
  '.foo': {
    'click': Rx.Observable.just({target: {}}),
    'mouseover': Rx.Observable.just({target: {}}),
    observable: Rx.Observable.empty() // <---- this
  },
  '.bar': {
    'scroll': Rx.Observable.just({target: {}})
  }
});

Read more: https://github.com/cyclejs/cycle-dom/issues/106