File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
internal-packages/tsql/src/query Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -108,13 +108,15 @@ describe("validateQuery", () => {
108108
109109 describe ( "enum validation" , ( ) => {
110110 it ( "should validate enum values" , ( ) => {
111- const result = validateSQL ( "SELECT * FROM runs WHERE status = 'COMPLETED' LIMIT 10" ) ;
111+ const result = validateSQL ( "SELECT id, status FROM runs WHERE status = 'COMPLETED' LIMIT 10" ) ;
112112 expect ( result . valid ) . toBe ( true ) ;
113113 expect ( result . issues ) . toHaveLength ( 0 ) ;
114114 } ) ;
115115
116116 it ( "should error on invalid enum values" , ( ) => {
117- const result = validateSQL ( "SELECT * FROM runs WHERE status = 'INVALID_STATUS' LIMIT 10" ) ;
117+ const result = validateSQL (
118+ "SELECT id, status FROM runs WHERE status = 'INVALID_STATUS' LIMIT 10"
119+ ) ;
118120 expect ( result . valid ) . toBe ( false ) ;
119121 expect ( result . issues ) . toHaveLength ( 1 ) ;
120122 expect ( result . issues [ 0 ] . type ) . toBe ( "invalid_enum_value" ) ;
You can’t perform that action at this time.
0 commit comments