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

Feature/seamless immutable #127

Merged
merged 5 commits into from
Sep 7, 2018
Merged

Feature/seamless immutable #127

merged 5 commits into from
Sep 7, 2018

Conversation

joeyfigaro
Copy link
Contributor

@joeyfigaro joeyfigaro commented Aug 20, 2018

Implemented @chardskarth changes from #72 so we can get this guy merged. 🍰

Updated tests (rather naively) to get them to pass—updated the expectations of each failing test to match the expectations of the tests on master.

@supasate
Copy link
Owner

Thanks @joeyfigaro for working on this. Can you format the code by following this project's eslint rules?

@joeyfigaro
Copy link
Contributor Author

@supasate definitely—should've checked before putting it up. I'll have those changes up shortly. 👍

@joeyfigaro
Copy link
Contributor Author

joeyfigaro commented Aug 23, 2018

@supasate I didn't find any problems outside of package.json and .eslintrc using tabs instead of spaces—did you happen to see anything else?

Steps I took:

  • ./node_modules/.bin/eslint -c .eslintrc src/**/* + " --fix
  • ./node_modules/.bin/eslint -c .eslintrc test/**/* + " --fix

Got zero results for both.

@@ -38,18 +39,18 @@ describe('ConnectedRouter', () => {
props = {
action: 'POP',
location: {
pathname: '/path/to/somewhere',
pathname: '/path/to/somewhere'
Copy link
Owner

Choose a reason for hiding this comment

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

Leave the ending comma.

},
history,
history
Copy link
Owner

Choose a reason for hiding this comment

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

Leave the ending comma.

}

// Mock store
const mockStore = configureStore()
store = mockStore({
router: {
action: 'POP',
location: props.history.location,
},
location: props.history.location
Copy link
Owner

Choose a reason for hiding this comment

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

Leave the ending comma.

location: props.history.location,
},
location: props.history.location
}
Copy link
Owner

Choose a reason for hiding this comment

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

Leave the ending comma.

@@ -252,9 +292,9 @@ const storeShape = PropTypes.shape({

ContextWrapper.propTypes = {
store: storeShape.isRequired,
children: PropTypes.element.isRequired,
children: PropTypes.element.isRequired
Copy link
Owner

Choose a reason for hiding this comment

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

Leave the ending comma.

}

ContextWrapper.childContextTypes = {
store: storeShape.isRequired,
store: storeShape.isRequired
Copy link
Owner

Choose a reason for hiding this comment

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

Leave the ending comma.


describe('connectRouter', () => {
let mockHistory
let mockHistory
Copy link
Owner

Choose a reason for hiding this comment

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

2 spaces instead of a tab. Please fix all of the followings.

Copy link
Owner

@supasate supasate left a comment

Choose a reason for hiding this comment

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

nit. just change code formatting..

@joeyfigaro
Copy link
Contributor Author

@supasate requested changes up!

@supasate supasate merged commit 8884783 into supasate:master Sep 7, 2018
@supasate
Copy link
Owner

supasate commented Sep 7, 2018

Thanks for your contribution!

@chardskarth
Copy link

Awesome. Just saw this today. ⭐ I wish I could've helped then.

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