Skip to content

Add Simple test case for base function utils #1099

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

Merged
merged 1 commit into from
Jan 4, 2018

Conversation

lanzhiheng
Copy link
Contributor

No description provided.

Copy link
Member

@Jinjiang Jinjiang left a comment

Choose a reason for hiding this comment

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

The dist/* files would only be committed when a new version published imo. So I think the change you made there should be removed.
Thanks.

@lanzhiheng
Copy link
Contributor Author

lanzhiheng commented Dec 21, 2017

@Jinjiang OK,I will remove it. Thanks.

@lanzhiheng lanzhiheng force-pushed the feature/add-test-for-utils branch from ab64725 to 4f0974b Compare December 21, 2017 15:23

describe('util', () => {
it('find', () => {
const list = [33, 22, 112, 222, 43]
expect(find(list, function (a) { return a % 2 }))
Copy link
Member

Choose a reason for hiding this comment

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

Sorry for reviewing after approved this but this does not specify an expected value. It looks always pass the test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😢 Sorry, I have updated it. @ktsn

@lanzhiheng lanzhiheng force-pushed the feature/add-test-for-utils branch from 4f0974b to 1ae13ae Compare January 3, 2018 17:56
@ktsn ktsn merged commit 479bd3e into vuejs:dev Jan 4, 2018
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