File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/cubejs-schema-compiler/test/unit Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -919,13 +919,13 @@ describe('SQL Generation', () => {
919919
920920 if ( q . measures [ 0 ] . includes ( 'count' ) ) {
921921 expect ( queryString . includes ( 'DATE_BIN(INTERVAL' ) ) . toBeTruthy ( ) ;
922- expect ( queryString . includes ( 'INTERVAL \'6 MONTH \'' ) ) . toBeTruthy ( ) ;
922+ expect ( queryString . toLowerCase ( ) . includes ( 'interval \'6 month \'' ) ) . toBeTruthy ( ) ;
923923 } else if ( q . measures [ 0 ] . includes ( 'rollingCountByTrailing2Day' ) ) {
924924 expect ( queryString . includes ( 'date_trunc(\'day\'' ) ) . toBeTruthy ( ) ;
925- expect ( queryString . includes ( 'INTERVAL \'2 DAY \'' ) ) . toBeTruthy ( ) ;
925+ expect ( queryString . toLowerCase ( ) . includes ( 'interval \'2 day \'' ) ) . toBeTruthy ( ) ;
926926 } else if ( q . measures [ 0 ] . includes ( 'rollingCountByLeading2Day' ) ) {
927927 expect ( queryString . includes ( 'date_trunc(\'day\'' ) ) . toBeTruthy ( ) ;
928- expect ( queryString . includes ( 'INTERVAL \'3 DAY \'' ) ) . toBeTruthy ( ) ;
928+ expect ( queryString . toLowerCase ( ) . includes ( 'interval \'3 day \'' ) ) . toBeTruthy ( ) ;
929929 }
930930 } ) ;
931931 } ) ;
You can’t perform that action at this time.
0 commit comments