55import { describe , expect , it } from '@jest/globals'
66import { RowCountCallback } from '../src/drivers/types'
77import { SQLiteCloudError , SQLiteCloudRow , SQLiteCloudRowset , sanitizeSQLiteIdentifier } from '../src/index'
8- import {
9- LONG_TIMEOUT ,
10- getChinookDatabase ,
11- getTestingDatabase ,
12- getTestingDatabaseAsync ,
13- removeDatabase ,
14- removeDatabaseAsync
15- } from './shared'
8+ import { LONG_TIMEOUT , getChinookDatabase , getTestingDatabase , getTestingDatabaseAsync , removeDatabase , removeDatabaseAsync } from './shared'
169
1710//
1811// utility methods to setup and destroy temporary test databases
@@ -42,7 +35,6 @@ describe('Database.run', () => {
4235 expect ( context . totalChanges ) . toBe ( 22 )
4336 expect ( context . finalized ) . toBe ( 1 )
4437
45- done ( )
4638 removeDatabase ( database , error => {
4739 expect ( error ) . toBeNull ( )
4840 done ( )
@@ -53,7 +45,6 @@ describe('Database.run', () => {
5345 expect ( error ) . toBeNull ( )
5446 database . run ( updateSql , plainCallbackNotALambda )
5547 } )
56- removeDatabase ( database )
5748 } ,
5849 LONG_TIMEOUT
5950 )
@@ -102,7 +93,6 @@ describe('Database.run', () => {
10293 expect ( context . totalChanges ) . toBe ( 22 )
10394 expect ( context . finalized ) . toBe ( 1 )
10495
105- done ( )
10696 removeDatabase ( database , error => {
10797 expect ( error ) . toBeNull ( )
10898 done ( )
@@ -113,7 +103,6 @@ describe('Database.run', () => {
113103 expect ( error ) . toBeNull ( )
114104 database . run ( insertSql , plainCallbackNotALambdaOne )
115105 } )
116- removeDatabase ( database )
117106 } ,
118107 LONG_TIMEOUT
119108 )
0 commit comments