-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
pipe manifest fetch/parse error strings up for display #102
Conversation
for example:
|
@@ -47,7 +47,9 @@ class ManifestExists extends Audit { | |||
*/ | |||
static audit(artifacts) { | |||
return ManifestExists.generateAuditResult( | |||
typeof artifacts.manifest !== 'undefined' | |||
typeof artifacts.manifest.value !== 'undefined', | |||
undefined, |
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.
what's this undefined arg?
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.
it's the audit's rawValue
, whatever that is. It could still be a boolean in this case, but then it'll be displayed twice with the current cli pretty printing.
The only place this is used currently is in the FMP output, which puts the actual time in parentheses. There's probably a better way of piping that through
Yeah I like this setup, though I could prefer |
}; | ||
}) | ||
.catch(reason => { | ||
return this._errorManifest(`Unable to fetch manifest at ${manifestURL}: ${reason}.`); |
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.
looks like we still need to add tests around these error messages.
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.
added a simple pass-through check. The more involved tests will be on the gatherer itself.
added |
I was thinking that the property is always called debugString throughout the app, instead of using |
aside from this silly naming issue, lgtm, obviously. |
whoops, didn't notice your last comment. Don't feel strongly, so went with being consistent on using PTAL |
groovy. thanks amigo. |
return { | ||
value: value, | ||
rawValue: rawValue, | ||
value, |
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.
personally i really hate mixing the : syntax it is very confusing ... but maybe it is something to get used to for me.
fixes #99