diff --git a/docs/recipes/custom-audit/memory-audit.js b/docs/recipes/custom-audit/memory-audit.js index 50e17c23c4..7fd411a712 100644 --- a/docs/recipes/custom-audit/memory-audit.js +++ b/docs/recipes/custom-audit/memory-audit.js @@ -6,11 +6,10 @@ import {Audit} from 'lighthouse'; -const MAX_MEMORY_USAGE = 1000; +const MAX_MEMORY_USAGE = 1_000_000; /** - * @fileoverview Tests that animation lengths are below the - * test threshold value. + * @fileoverview Tests that the memory usage is below a certain threshold. */ class MemoryUsage extends Audit { @@ -19,7 +18,7 @@ class MemoryUsage extends Audit { id: 'memory-audit', title: 'Did not find any large memory usage', failureTitle: 'Found large memory usage', - description: 'Used to find any memory samples larger than 1kb', + description: 'Detects if any memory sample was larger than 1 MB', // The name of the custom gatherer class that provides input to this audit. requiredArtifacts: ['MemoryProfile'],