@@ -65,16 +65,12 @@ describe("parser", () => {
6565
6666 it ( "multiline curly expression" , ( ) => {
6767 const tokens = parseTemplate ( "{{ a ?\n b : c }}" ) ;
68- expect ( tokens ) . toMatchObject ( [
69- { type : "expr" , contents : "htmlspecialchars(a ?\n b : c)" } ,
70- ] ) ;
68+ expect ( tokens ) . toMatchObject ( [ { type : "expr" , contents : "htmlspecialchars(a ?\n b : c)" } ] ) ;
7169 } ) ;
7270
7371 it ( "multiline curly unescaped expression" , ( ) => {
7472 const tokens = parseTemplate ( "{{{ a ?\n b : c }}}" ) ;
75- expect ( tokens ) . toMatchObject ( [
76- { type : "expr" , contents : "a ?\n b : c" } ,
77- ] ) ;
73+ expect ( tokens ) . toMatchObject ( [ { type : "expr" , contents : "a ?\n b : c" } ] ) ;
7874 } ) ;
7975
8076 it ( "code" , ( ) => {
@@ -96,9 +92,7 @@ describe("parser", () => {
9692 } ) ;
9793
9894 it ( "script server" , ( ) => {
99- const tokens = parseTemplate (
100- "<script server>const x = 1;</script><p><?= x ?></p>" ,
101- ) ;
95+ const tokens = parseTemplate ( "<script server>const x = 1;</script><p><?= x ?></p>" ) ;
10296 expect ( tokens ) . toMatchObject ( [
10397 { type : "code" , contents : "const x = 1;" } ,
10498 { type : "text" , contents : "<p>" } ,
0 commit comments