diff --git a/lighthouse-core/audits/errors-in-console.js b/lighthouse-core/audits/errors-in-console.js index 942d9142949c..aa71435ef461 100644 --- a/lighthouse-core/audits/errors-in-console.js +++ b/lighthouse-core/audits/errors-in-console.js @@ -44,7 +44,7 @@ class ErrorLogs extends Audit { } /** @return {AuditOptions} */ - static defaultOptions() { + static get defaultOptions() { // Any failed network requests with error messsage aren't actionable return {ignoredPatterns: ['ERR_BLOCKED_BY_CLIENT.Inspector']}; } diff --git a/lighthouse-core/test/audits/errors-in-console-test.js b/lighthouse-core/test/audits/errors-in-console-test.js index 3064f7cf0679..4f800c17a140 100644 --- a/lighthouse-core/test/audits/errors-in-console-test.js +++ b/lighthouse-core/test/audits/errors-in-console-test.js @@ -236,7 +236,7 @@ describe('ConsoleMessages error logs audit', () => { 'url': 'https://www.facebook.com/tr/', 'text': 'Failed to load resource: net::ERR_BLOCKED_BY_CLIENT.Inspector', }], - }, {options: ErrorLogsAudit.defaultOptions()}); + }, {options: ErrorLogsAudit.defaultOptions}); assert.equal(auditResult.score, 1); assert.equal(auditResult.details.items.length, 0); });