-
-
Notifications
You must be signed in to change notification settings - Fork 11
Add baseUrl Request Helper #8
Add baseUrl Request Helper #8
Conversation
Hmmm.. lints are failing, I'll check tomorrow. |
Yes, you need to use prettier for formatting, it's mandatory. Easiest is to use the VSCode/Webstorm extension, but you could also do a |
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.
Thanks for the PR, it looks great 👍
Maybe my idea of allowing null
for the environment wasn't that good, we should use {} as any
in the tests, so we don't have to allow Environment | null
in the TemplateParser
just for them. Could you please make the changes?
Sorry for the extra work.
518464e
to
e548eea
Compare
Thanks for the feedback and tips @255kb, ready for another review 👍 |
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.
Thanks it's perfect :)
One small change though and I think we can merge.
….com/louiealmeda/commons-server into feature/7-add-baseUrl-request-helper
Thanks! I will take care of the documentation and integrate the lib in the next release. |
- add and split tests - update faker.js to latest version, make setSeed null safe Closes #8
Computed baseUrl
Parent issue
Closes #7
Technical implementation details
baseUrl
to RequestHelpersEnvironment
as a required parameter forTemplateParser
andRequestHelpers
TemplateParser
to set theEnvironment
asnull
baseUrl