Skip to content

Commit

Permalink
misc: fix typo in method name (#11239)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas authored Aug 10, 2020
1 parent 8b97821 commit 8fd7551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lighthouse-core/audits/server-response-time.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ServerResponseTime extends Audit {
/**
* @param {LH.Artifacts.NetworkRequest} record
*/
static caclulateResponseTime(record) {
static calculateResponseTime(record) {
const timing = record.timing;
return timing ? timing.receiveHeadersEnd - timing.sendEnd : 0;
}
Expand All @@ -55,7 +55,7 @@ class ServerResponseTime extends Audit {
const devtoolsLog = artifacts.devtoolsLogs[Audit.DEFAULT_PASS];
const mainResource = await MainResource.request({devtoolsLog, URL: artifacts.URL}, context);

const responseTime = ServerResponseTime.caclulateResponseTime(mainResource);
const responseTime = ServerResponseTime.calculateResponseTime(mainResource);
const passed = responseTime < RESPONSE_THRESHOLD;
const displayValue = str_(UIStrings.displayValue, {timeInMs: responseTime});

Expand Down

0 comments on commit 8fd7551

Please sign in to comment.