@@ -9,9 +9,7 @@ test.each([
99 'console.log("Hello %%s", "there")' ,
1010 'console.log("Hello", "There")' ,
1111] ) ( "console.log (%p)" , code => {
12- util . testFunction ( code )
13- . setOptions ( compilerOptions )
14- . expectLuaToMatchSnapshot ( ) ;
12+ util . testFunction ( code ) . setOptions ( compilerOptions ) . expectLuaToMatchSnapshot ( ) ;
1513} ) ;
1614
1715test . each ( [
@@ -21,9 +19,7 @@ test.each([
2119 'console.info("Hello %%s", "there")' ,
2220 'console.info("Hello", "There")' ,
2321] ) ( "console.info (%p)" , code => {
24- util . testFunction ( code )
25- . setOptions ( compilerOptions )
26- . expectLuaToMatchSnapshot ( ) ;
22+ util . testFunction ( code ) . setOptions ( compilerOptions ) . expectLuaToMatchSnapshot ( ) ;
2723} ) ;
2824
2925test . each ( [
@@ -33,9 +29,7 @@ test.each([
3329 'console.error("Hello %%s", "there")' ,
3430 'console.error("Hello", "There")' ,
3531] ) ( "console.error (%p)" , code => {
36- util . testFunction ( code )
37- . setOptions ( compilerOptions )
38- . expectLuaToMatchSnapshot ( ) ;
32+ util . testFunction ( code ) . setOptions ( compilerOptions ) . expectLuaToMatchSnapshot ( ) ;
3933} ) ;
4034
4135test . each ( [
@@ -45,9 +39,7 @@ test.each([
4539 'console.warn("Hello %%s", "there")' ,
4640 'console.warn("Hello", "There")' ,
4741] ) ( "console.warn (%p)" , code => {
48- util . testFunction ( code )
49- . setOptions ( compilerOptions )
50- . expectLuaToMatchSnapshot ( ) ;
42+ util . testFunction ( code ) . setOptions ( compilerOptions ) . expectLuaToMatchSnapshot ( ) ;
5143} ) ;
5244
5345test . each ( [
@@ -57,9 +49,7 @@ test.each([
5749 'console.trace("Hello %%s", "there")' ,
5850 'console.trace("Hello", "there")' ,
5951] ) ( "console.trace (%p)" , code => {
60- util . testFunction ( code )
61- . setOptions ( compilerOptions )
62- . expectLuaToMatchSnapshot ( ) ;
52+ util . testFunction ( code ) . setOptions ( compilerOptions ) . expectLuaToMatchSnapshot ( ) ;
6353} ) ;
6454
6555test . each ( [
@@ -69,9 +59,7 @@ test.each([
6959 'console.assert(false, "message %%s", "info")' ,
7060 'console.assert(false, "message", "more")' ,
7161] ) ( "console.assert (%p)" , code => {
72- util . testFunction ( code )
73- . setOptions ( compilerOptions )
74- . expectLuaToMatchSnapshot ( ) ;
62+ util . testFunction ( code ) . setOptions ( compilerOptions ) . expectLuaToMatchSnapshot ( ) ;
7563} ) ;
7664
7765test ( "console.differentiation" , ( ) => {
0 commit comments