Skip to content

Commit 6dffe5e

Browse files
committed
fixup! Add back support for CJS extra languages
1 parent 13b4ea1 commit 6dffe5e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/detect/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ function testAutoDetection(language, { detectPath }) {
3333

3434
describe('hljs.highlightAuto()', () => {
3535
before(async function() {
36-
const thirdPartyPackages = await getThirdPartyPackages();
36+
const thirdPartyPackages = [];
37+
for await(const pkg of getThirdPartyPackages()) thirdPartyPackages.push(pkg);
3738

3839
const languages = hljs.listLanguages();
3940
describe(`hljs.highlightAuto()`, function() {

test/markup/index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,11 @@ describe('highlight() markup', async() => {
5050
languages.forEach(testLanguage);
5151
}
5252

53-
const thirdPartyPackages = await getThirdPartyPackages();
54-
thirdPartyPackages.forEach(
55-
(pkg) => pkg.names.forEach(
53+
for await(const pkg of getThirdPartyPackages()) {
54+
pkg.names.forEach(
5655
(name, idx) => testLanguage(name, { testDir: pkg.markupTestPaths[idx] })
57-
)
58-
);
56+
);
57+
}
5958
});
6059

6160
it("adding dynamic tests...", async function() {}); // this is required to work

0 commit comments

Comments
 (0)