File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -48,15 +48,8 @@ describe('SingleStoreDbFormatter', () => {
48
48
modify : true ,
49
49
renameTo : true ,
50
50
} ) ;
51
+
51
52
describe ( `formats traversal of semi structured data` , ( ) => {
52
- it ( `formats '.' path-operator without spaces` , ( ) => {
53
- expect ( format ( `SELECT TO_JSON(foo.*) AS foo_json FROM foo` ) ) . toBe ( dedent `
54
- SELECT
55
- TO_JSON(foo.*) AS foo_json
56
- FROM
57
- foo
58
- ` ) ;
59
- } ) ;
60
53
it ( `formats '::' path-operator without spaces` , ( ) => {
61
54
expect ( format ( `SELECT * FROM foo WHERE json_foo::bar = 'foobar'` ) ) . toBe ( dedent `
62
55
SELECT
@@ -88,13 +81,14 @@ describe('SingleStoreDbFormatter', () => {
88
81
` ) ;
89
82
} ) ;
90
83
} ) ;
84
+
91
85
describe ( `formats custom type-cast operators` , ( ) => {
92
86
it ( `formats ':>' type-cast operator` , ( ) => {
93
87
expect ( format ( `SELECT 1 :> DOUBLE AS foo` ) ) . toBe ( dedent `
94
88
SELECT
95
89
1 :> DOUBLE AS foo
96
90
` ) ;
97
- } ) ;
91
+ } ) ;
98
92
it ( `formats '!:>' type-cast operator` , ( ) => {
99
93
expect ( format ( `SELECT 1 !:> DOUBLE AS foo` ) ) . toBe ( dedent `
100
94
SELECT
You can’t perform that action at this time.
0 commit comments