Skip to content

Conversation

Baoyx007
Copy link
Contributor

support .native modifier for v-stream

Copy link
Collaborator

@regou regou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please enhance assert, make it more accurate

test/test.js Outdated
subscriptions () {
return {
count: this.click$.map(() => -1)
.merge(this.clickNative$.map(() => 1))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This map operator function should asserting the passing argument is indeed a native event

test/test.js Outdated
}).$mount()

expect(vm.$el.querySelector('span').textContent).toBe('0')
click(vm.$el.querySelector('button'))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two buttons, use ID selector

@regou regou merged commit 67721eb into vuejs:master Aug 27, 2017
@Baoyx007 Baoyx007 deleted the patch-1 branch August 27, 2017 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants