-
Notifications
You must be signed in to change notification settings - Fork 25
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
Infoj Order Correction #1508
Infoj Order Correction #1508
Conversation
Quality Gate passedIssues Measures |
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.
Looking good.
I moved the map method into documented function to make this eassier readable.
I updated the test to be in order of infoj > order > execution > results > expected > test for readability especially when setting breakpoints.
Note that you can create an array from an elements list allowing to use map functions instead of pushing into results in a for loop.
const results = Array.from(infoj.children)
.map(el => el.firstChild.innerText.trim())
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.
lgtm
Nice one! |
Description
The lookup for the infoj_order checks on key, then field, and finally query. This fails when a key exists but doesn't match.
We have created a set of the different fields that will then be compared with a has check on the entry.
GitHub Issue
Type of Change
Please delete options that are not relevant, and select all options that apply.
How have you tested this?
Run the local tests.
Testing Checklist