File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -56,22 +56,14 @@ describe("Query Deparsing", () => {
5656 it ( 'should deparse a parse tree' , async ( ) => {
5757 const sql = 'SELECT * FROM users' ;
5858 const parseTree = await query . parseQuery ( sql ) ;
59- console . log ( 'Parse Tree:' , parseTree ) ;
60-
6159 const deparsed = await query . deparse ( parseTree ) ;
62- console . log ( 'Deparsed:' , deparsed ) ;
63-
6460 expect ( deparsed ) . to . equal ( sql ) ;
6561 } ) ;
6662
6763 it ( 'should throw on invalid parse tree' , ( ) => {
68- console . log ( 'Testing empty object...' ) ;
6964 try {
7065 query . deparseSync ( { } ) ;
71- console . log ( 'No error thrown!' ) ;
72- } catch ( err ) {
73- console . log ( 'Error caught:' , err . message ) ;
74- }
66+ } catch ( err ) { }
7567 expect ( ( ) => query . deparseSync ( { } ) ) . to . throw ( 'No parseTree provided' ) ;
7668 } ) ;
7769} ) ;
You can’t perform that action at this time.
0 commit comments