@@ -64,14 +64,22 @@ async function runTest({
6464 if ( ! FULL_TEST ) {
6565 return ;
6666 }
67- await testAntlrFormat . run ( code , formatResult , filename , formatOptions ) ;
68- await testVariantCoverage . run ( code , formatResult , filename , formatOptions ) ;
69- await testSecondFormat . run ( code , formatResult , filename , formatOptions ) ;
70- await testAstCompare . run ( code , formatResult , filename , formatOptions ) ;
71- await testEndOfLine . run ( code , formatResult , filename , formatOptions , "\r\n" ) ;
72- await testEndOfLine . run ( code , formatResult , filename , formatOptions , "\r" ) ;
73- await testBom . run ( code , formatResult , filename , formatOptions ) ;
74- await testBytecodeCompare . run ( code , formatResult , filename , formatOptions ) ;
67+ await Promise . all (
68+ [
69+ testAntlrFormat ,
70+ testVariantCoverage ,
71+ testSecondFormat ,
72+ testAstCompare ,
73+ testBom ,
74+ testBytecodeCompare ,
75+ ]
76+ . map ( ( test ) => test . run ( code , formatResult , filename , formatOptions ) )
77+ . join (
78+ [ "\r\n" , "\r" ] . map ( ( eol ) =>
79+ testEndOfLine . run ( code , formatResult , filename , formatOptions , eol ) ,
80+ ) ,
81+ ) ,
82+ ) ;
7583}
7684
7785export { runTest } ;
0 commit comments