@@ -2,22 +2,22 @@ import { describe, it, expect } from "vitest";
2
2
import { print } from "recast" ;
3
3
import { literalToAst } from "../src/proxy/_utils" ;
4
4
5
- describe ( ' literalToAst' , ( ) => {
5
+ describe ( " literalToAst" , ( ) => {
6
6
// eslint-disable-next-line unicorn/consistent-function-scoping
7
7
function run ( value : any ) {
8
8
return print ( literalToAst ( value ) ) . code ;
9
9
}
10
-
11
- it ( ' should work' , ( ) => {
12
- expect ( run ( 1 ) ) . toMatchInlineSnapshot ( '"1"' )
13
- expect ( run ( true ) ) . toMatchInlineSnapshot ( '"true"' )
14
- expect ( run ( undefined ) ) . toMatchInlineSnapshot ( '"undefined"' )
10
+
11
+ it ( " should work" , ( ) => {
12
+ expect ( run ( 1 ) ) . toMatchInlineSnapshot ( '"1"' ) ;
13
+ expect ( run ( true ) ) . toMatchInlineSnapshot ( '"true"' ) ;
14
+ expect ( run ( undefined ) ) . toMatchInlineSnapshot ( '"undefined"' ) ;
15
15
// eslint-disable-next-line unicorn/no-null
16
- expect ( run ( null ) ) . toMatchInlineSnapshot ( '"null"' )
17
- expect ( run ( [ undefined , 1 , { foo :' bar' } ] ) ) . toMatchInlineSnapshot ( `
16
+ expect ( run ( null ) ) . toMatchInlineSnapshot ( '"null"' ) ;
17
+ expect ( run ( [ undefined , 1 , { foo : " bar" } ] ) ) . toMatchInlineSnapshot ( `
18
18
"[undefined, 1, {
19
19
foo: \\"bar\\"
20
20
}]"
21
- ` )
22
- } )
23
- } )
21
+ ` ) ;
22
+ } ) ;
23
+ } ) ;
0 commit comments