diff --git a/lighthouse-cli/test/smokehouse/dobetterweb/dbw-expectations.js b/lighthouse-cli/test/smokehouse/dobetterweb/dbw-expectations.js index bd51a1c8fc5a..b3ae12bf89a7 100644 --- a/lighthouse-cli/test/smokehouse/dobetterweb/dbw-expectations.js +++ b/lighthouse-cli/test/smokehouse/dobetterweb/dbw-expectations.js @@ -138,6 +138,14 @@ module.exports = [ ], }, }, + 'js-libraries': { + score: 1, + details: { + items: [{ + name: 'jQuery', + }], + }, + }, }, }, ]; diff --git a/lighthouse-core/gather/gatherers/dobetterweb/js-libraries.js b/lighthouse-core/gather/gatherers/dobetterweb/js-libraries.js index 2d6a0c7b3ec0..040690f97422 100644 --- a/lighthouse-core/gather/gatherers/dobetterweb/js-libraries.js +++ b/lighthouse-core/gather/gatherers/dobetterweb/js-libraries.js @@ -29,9 +29,9 @@ function detectLibraries() { // d41d8cd98f00b204e9800998ecf8427e_ is a consistent prefix used by the detect libraries // see https://github.com/HTTPArchive/httparchive/issues/77#issuecomment-291320900 // @ts-ignore - injected libDetectorSource var - Object.entries(d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests).forEach(([name, lib]) => { + Object.entries(d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests).forEach(async ([name, lib]) => { // eslint-disable-line max-len try { - const result = lib.test(window); + const result = await lib.test(window); if (result) { libraries.push({ name: name,