File tree Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -279,19 +279,4 @@ export default function behavesLikeSqlFormatter(format: FormatFn) {
279
279
tbl;
280
280
` ) ;
281
281
} ) ;
282
-
283
- it ( 'supports decimal values without leading digits' , ( ) => {
284
- const result = format (
285
- `SELECT employee_id FROM employees WHERE salary > .456 * 1000000 AND bonus < .0000239 * salary;`
286
- ) ;
287
- expect ( result ) . toBe ( dedent `
288
- SELECT
289
- employee_id
290
- FROM
291
- employees
292
- WHERE
293
- salary > .456 * 1000000
294
- AND bonus < .0000239 * salary;
295
- ` ) ;
296
- } ) ;
297
282
}
Original file line number Diff line number Diff line change @@ -51,4 +51,12 @@ export default function supportsNumbers(format: FormatFn) {
51
51
100. * b / SUM(a_s);
52
52
` ) ;
53
53
} ) ;
54
+
55
+ it ( 'supports decimal values without leading digits' , ( ) => {
56
+ const result = format ( `SELECT .456 AS foo;` ) ;
57
+ expect ( result ) . toBe ( dedent `
58
+ SELECT
59
+ .456 AS foo;
60
+ ` ) ;
61
+ } ) ;
54
62
}
You can’t perform that action at this time.
0 commit comments