-
Notifications
You must be signed in to change notification settings - Fork 4
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
Added support for proxy, updated packages and more. #21
base: master
Are you sure you want to change the base?
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.
LGMT, thanks for the PR
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.
Small cleanup and I would like to know what inline does
Addressed Changes requested by @dreich-nucleus |
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 tags handling does not seem correct and you did not mention it in the PR description. I can't tell what I'm supposed to review here. But there are clearly bugs and changes needed.
@@ -18,6 +23,34 @@ if (apiPort.get('API_TESTS_PATH')) { | |||
apiPort.currentFile = filePath; | |||
const config = loadYamlFile(filePath); | |||
describe(filePath, () => { | |||
let tagsInTest = []; | |||
if (tagsInTest) { |
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 is always true. Empty arrays are not "falsey". So, this block always executes. Just remove the if.
Unless you meant to check something that might be false - like the config.apiCalls.tag
or tagsArray.length
(remember tagArray will be truthy even when empty).
} | ||
if (tagsArray.length > 0) { | ||
let tagMatched = false; | ||
for (const tagInArgs of tagsArray) { |
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.
Use lodash
and one of its many set operators here - intersection is probably the one you want.
Added these two new flags in command-line arguments
Content-length set to Zero when the body is empty.