Skip to content

Commit

Permalink
fixup! Add back support for CJS extra languages
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Jun 26, 2021
1 parent 13b4ea1 commit 6dffe5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion test/detect/index.js
Expand Up @@ -33,7 +33,8 @@ function testAutoDetection(language, { detectPath }) {

describe('hljs.highlightAuto()', () => {
before(async function() {
const thirdPartyPackages = await getThirdPartyPackages();
const thirdPartyPackages = [];
for await(const pkg of getThirdPartyPackages()) thirdPartyPackages.push(pkg);

const languages = hljs.listLanguages();
describe(`hljs.highlightAuto()`, function() {
Expand Down
9 changes: 4 additions & 5 deletions test/markup/index.js
Expand Up @@ -50,12 +50,11 @@ describe('highlight() markup', async() => {
languages.forEach(testLanguage);
}

const thirdPartyPackages = await getThirdPartyPackages();
thirdPartyPackages.forEach(
(pkg) => pkg.names.forEach(
for await(const pkg of getThirdPartyPackages()) {
pkg.names.forEach(
(name, idx) => testLanguage(name, { testDir: pkg.markupTestPaths[idx] })
)
);
);
}
});

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

0 comments on commit 6dffe5e

Please sign in to comment.