-
Notifications
You must be signed in to change notification settings - Fork 1
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/ATC-175 #226
feature/ATC-175 #226
Conversation
…TC-175 Conflicts: - CHANGELOG.md
@@ -467,11 +467,23 @@ export default class StandardRouteModel extends BaseModel { | |||
|
|||
if (this._entryCollection) { | |||
const entrySegment = this._entryCollection.findSegmentByName(entry); | |||
|
|||
if (entrySegment === undefined) { |
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 StandardRoute files are heavily tested so I would like to see some tests for this new stuff. In the interest of time, I'll whip some up here.
@@ -467,11 +467,23 @@ export default class StandardRouteModel extends BaseModel { | |||
|
|||
if (this._entryCollection) { | |||
const entrySegment = this._entryCollection.findSegmentByName(entry); | |||
|
|||
if (entrySegment === undefined) { |
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 typeof entrySegment === 'undefined'
. javascript is a little particular about comparisons with undefined
and using typeof
with strict equals (===
) is the best way to check for undefined
. I"ll make that change while I'm writing tests.
Resolves #175.
I... think I fixed it? Should probably play around with it to see if other errors come up, but the one described in the issue is resolved.