-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add unit test for data-hook and instantiateAll #1159
Conversation
Thanks for the improvements! Browse a preview of your changes using the link below. Built with commit e749374 |
} ); | ||
} ); | ||
|
||
describe( 'remove()', () => { |
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.
The remove()
test is in here twice.
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.
🤔 not sure how that happened, but fixed!
@@ -9,7 +9,7 @@ | |||
- Atom | |||
========================================================================= */ | |||
|
|||
import * as dataHook from './data-hook'; | |||
import { add, contains, remove } from './data-hook'; |
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.
Why import the individual methods separately? For clarity?
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.
Yeah so if you search for the methods you will get the import statement in the search results. Also, if data-hook has more added to it, it won't be automatically pulled into this file where it's unneeded.
Changes
data-hook.js
.instantiateAll
test.Testing
gulp test:unit
should pass.