Skip to content
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

tests(audits): Return type correction (LH.Audit.Result -> LH.Audit.Product) #10270

Merged
merged 1 commit into from
Jan 28, 2020
Merged

tests(audits): Return type correction (LH.Audit.Result -> LH.Audit.Product) #10270

merged 1 commit into from
Jan 28, 2020

Conversation

jayaddison
Copy link
Contributor

Summary
Change #10072 used the Audit.generateErrorAuditResult function to generate a return value, but this return value is of type LH.Audit.Result, when the caller is expecting LH.Audit.Product.

Since the returned value we expect is a relatively simple type, here we construct the relevant fields (score, errorMessage) directly instead.

Related Issues/PRs
#10072

@paulirish paulirish merged commit c54dfcd into GoogleChrome:master Jan 28, 2020
@jayaddison jayaddison deleted the tests-fixup-error-return-type branch January 28, 2020 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants