Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support .native modifier for v-stream #53

Merged
merged 3 commits into from
Aug 27, 2017
Merged

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.

None yet

3 participants