File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/drizzle-driver/tests/sqlite Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ describe('Database operations', () => {
5050 expect ( result ! . name ) . toEqual ( 'James Smith' ) ;
5151 } ) ;
5252
53- it ( 'should insert a user and update that user within a transaction when raw sql is used' , async ( ) => {
53+ it . only ( 'should insert a user and update that user within a transaction when raw sql is used' , async ( ) => {
5454 await db . transaction ( async ( transaction ) => {
5555 await transaction . run ( sql `INSERT INTO users (id, name) VALUES ('4', 'James');` ) ;
56- await db . update ( drizzleUsers ) . set ( { name : 'James Smith' } ) . where ( eq ( drizzleUsers . name , 'James' ) ) ;
56+ await transaction . update ( drizzleUsers ) . set ( { name : 'James Smith' } ) . where ( eq ( drizzleUsers . name , 'James' ) ) ;
5757 } ) ;
5858
5959 const result = await db . select ( ) . from ( drizzleUsers ) . get ( ) ;
You can’t perform that action at this time.
0 commit comments