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

Added linting to unit tests and applied lint fixes. #76

Merged
merged 1 commit into from
May 30, 2015
Merged

Added linting to unit tests and applied lint fixes. #76

merged 1 commit into from
May 30, 2015

Conversation

bhamodi
Copy link
Contributor

@bhamodi bhamodi commented May 30, 2015

@@ -111,7 +111,7 @@ describe('Utils', () => {
expect(Utils.isObject(1)).not.toBe(true)
expect(Utils.isObject('something')).not.toBe(true)
expect(Utils.isObject(false)).not.toBe(true)
expect(Utils.isObject(void 0)).not.toBe(true)
Copy link
Contributor

Choose a reason for hiding this comment

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

why did this test get changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

void 0 === undefined - as per (http://stackoverflow.com/a/4806335/3474514)
It got caught by the eslint option: "no-void": 1,

@jordangarcia
Copy link
Contributor

okay, seems fine to me

bhamodi added a commit that referenced this pull request May 30, 2015
Added linting to unit tests and applied lint fixes.
@bhamodi bhamodi merged commit 50bd7ce into optimizely:master May 30, 2015
@bhamodi bhamodi mentioned this pull request Jun 2, 2015
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants