File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ function testAutoDetection(language, { detectPath }) {
33
33
34
34
describe ( 'hljs.highlightAuto()' , ( ) => {
35
35
before ( async function ( ) {
36
- const thirdPartyPackages = await getThirdPartyPackages ( ) ;
36
+ const thirdPartyPackages = [ ] ;
37
+ for await ( const pkg of getThirdPartyPackages ( ) ) thirdPartyPackages . push ( pkg ) ;
37
38
38
39
const languages = hljs . listLanguages ( ) ;
39
40
describe ( `hljs.highlightAuto()` , function ( ) {
Original file line number Diff line number Diff line change @@ -50,12 +50,11 @@ describe('highlight() markup', async() => {
50
50
languages . forEach ( testLanguage ) ;
51
51
}
52
52
53
- const thirdPartyPackages = await getThirdPartyPackages ( ) ;
54
- thirdPartyPackages . forEach (
55
- ( pkg ) => pkg . names . forEach (
53
+ for await ( const pkg of getThirdPartyPackages ( ) ) {
54
+ pkg . names . forEach (
56
55
( name , idx ) => testLanguage ( name , { testDir : pkg . markupTestPaths [ idx ] } )
57
- )
58
- ) ;
56
+ ) ;
57
+ }
59
58
} ) ;
60
59
61
60
it ( "adding dynamic tests..." , async function ( ) { } ) ; // this is required to work
You can’t perform that action at this time.
0 commit comments