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/test path variables #32

Merged
3 commits merged into from
Aug 20, 2019
Merged

Feature/test path variables #32

3 commits merged into from
Aug 20, 2019

Conversation

dtobe
Copy link
Owner

@dtobe dtobe commented Aug 15, 2019

I experimented with wildcards and parameter definitions in routes.
Motivation was preparation for later validating parameters.

added test suite to assert that parameters can be matched and
wildcard expressions are possible
@dtobe dtobe requested review from spik3r and a user August 15, 2019 17:54
@dtobe dtobe self-assigned this Aug 15, 2019
@dtobe dtobe added this to In Review in Aietes-JS Aug 16, 2019
mock-server.js Outdated
if (req.query && Object.keys(req.query).length) {
logMessage += `Query parameters${buildParameterList(req.query)}`;
}
logMessage && console.log(logMessage);
Copy link

Choose a reason for hiding this comment

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

Why "logMessage &&"?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Leftover from an earlier draft. Fixed.

logging of parameters should be properly conditional now,
also extracted info logging into separate module
@ghost ghost merged commit dd3a5e9 into master Aug 20, 2019
@dtobe dtobe deleted the feature/test-path-variables branch August 21, 2019 11:32
@dtobe dtobe moved this from In Review to Done in Aietes-JS Aug 21, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Aietes-JS
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant