-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Resolve audit result #487
Resolve audit result #487
Conversation
throw new Error('generateAuditResult requires a rawValue'); | ||
} | ||
|
||
let score = result.score ? result.score : result.rawValue; |
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.
should probably use an undefined check as to not discard possible scores of 0
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.
correct :)
422cfd1
to
53fa9c5
Compare
Updated :) |
Looks like it fails tests :( |
53fa9c5
to
3ebfdba
Compare
Forgot to push :'( waiting for the build :) |
3ebfdba
to
54a0ff2
Compare
awesome stuff. A massive cleanup. Thanks for this |
Should fix #458
No idea if I did any good but basically this is what i've done.
Every value is mapped to rawValue (so value => rawValue).
Score is equal to score, if no score is set we fallback to rawValue
display value uses rawvalue with minor adaptation like adding ms or fallbacks to string representation of rawValue. If displayValue === score we make it empty so we don't display it in our reporting