-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix(rest): only return matched trie nodes with values #2375
Conversation
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.
👏
@@ -214,6 +214,44 @@ function runTestsWithRouter(router: RestRouter) { | |||
expect(route.pathParams).to.containEql({userId: '1', format: 'json'}); | |||
}); | |||
|
|||
it('finds "GET /orders/ and GET /orders/{id}" endpoints', () => { |
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.
it('finds "GET /orders/ and GET /orders/{id}" endpoints', () => { | |
it('finds "GET /orders and GET /orders/{id}" endpoints', () => { |
The test names should match the code.
async findOrders(): Promise<object[]> { | ||
return []; | ||
} | ||
// A path overlaps with `/order/{id}`. Please note a different var name |
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.
// A path overlaps with `/order/{id}`. Please note a different var name | |
// A path overlaps with `/orders/{id}`. Please note a different var name |
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.
nitpick: A path overlaps
-> A path that overlaps
async findOrders(): Promise<object[]> { | ||
return []; | ||
} | ||
// A path overlaps with `/order/{id}`. Please note a different var name |
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.
nitpick: A path overlaps
-> A path that overlaps
7284e4c
to
6e2a40b
Compare
Fixes #2188
This is a spin-off from #2355.
Checklist
npm test
passes on your machinepackages/cli
were updatedexamples/*
were updated