-
Notifications
You must be signed in to change notification settings - Fork 601
Conversation
Codecov Report
@@ Coverage Diff @@
## master #115 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 40 41 +1
Lines 109 113 +4
=====================================
+ Hits 109 113 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks! Just one minor change :)
test/max.test.js
Outdated
@@ -0,0 +1,8 @@ | |||
import test from 'ava' | |||
import max from '../src/max' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be: import {max} from '../src'
(see the other tests).
This means that you'll need to import max
into the src/index.js
and add it to the list of exports. Could you do that update please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK! no problem
the max function could find the maximum value of the list Closes eggheadio-github#114
I don't know why I get the error after I revise the test |
Go ahead and push what you have and I can help 👍 |
I already push the project as the same commit. please review the commit 31c9877 |
@@ -0,0 +1,8 @@ | |||
import test from 'ava' | |||
import {max} from '../src' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, the reason you're having this problem is because you haven't added the import/export
to src/index.js
yet. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh! Got it! I done XD
Does import file by this way could have better performance? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, but it makes it easier for folks to use this package:
import {max} from 'stack-overflow-copy-paste'
Even though nobody should really be using this package 😉 It's just for folks to practice contributing to OSS!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it 👍
Thanks so much! You did great! 👏 |
the max function could find the maximum value of the list
Please review the implementation
Thanks :)
Closes #114