Skip to content

Commit d590436

Browse files
committed
fix database test
1 parent 3867c79 commit d590436

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/database.test.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,7 @@
55
import { describe, expect, it } from '@jest/globals'
66
import { RowCountCallback } from '../src/drivers/types'
77
import { 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

Comments
 (0)