-
Notifications
You must be signed in to change notification settings - Fork 592
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
Feature/seamless immutable #127
Conversation
Thanks @joeyfigaro for working on this. Can you format the code by following this project's eslint rules? |
@supasate definitely—should've checked before putting it up. I'll have those changes up shortly. 👍 |
@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:
Got zero results for both. |
test/ConnectedRouter.test.js
Outdated
@@ -38,18 +39,18 @@ describe('ConnectedRouter', () => { | |||
props = { | |||
action: 'POP', | |||
location: { | |||
pathname: '/path/to/somewhere', | |||
pathname: '/path/to/somewhere' |
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.
Leave the ending comma.
test/ConnectedRouter.test.js
Outdated
}, | ||
history, | ||
history |
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.
Leave the ending comma.
test/ConnectedRouter.test.js
Outdated
} | ||
|
||
// Mock store | ||
const mockStore = configureStore() | ||
store = mockStore({ | ||
router: { | ||
action: 'POP', | ||
location: props.history.location, | ||
}, | ||
location: props.history.location |
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.
Leave the ending comma.
test/ConnectedRouter.test.js
Outdated
location: props.history.location, | ||
}, | ||
location: props.history.location | ||
} |
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.
Leave the ending comma.
test/ConnectedRouter.test.js
Outdated
@@ -252,9 +292,9 @@ const storeShape = PropTypes.shape({ | |||
|
|||
ContextWrapper.propTypes = { | |||
store: storeShape.isRequired, | |||
children: PropTypes.element.isRequired, | |||
children: PropTypes.element.isRequired |
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.
Leave the ending comma.
} | ||
|
||
ContextWrapper.childContextTypes = { | ||
store: storeShape.isRequired, | ||
store: storeShape.isRequired |
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.
Leave the ending comma.
test/reducer.test.js
Outdated
|
||
describe('connectRouter', () => { | ||
let mockHistory | ||
let mockHistory |
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.
2 spaces instead of a tab. Please fix all of the followings.
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.
nit. just change code formatting..
@supasate requested changes up! |
Thanks for your contribution! |
Awesome. Just saw this today. ⭐ I wish I could've helped then. |
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.