Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sqlitecloud/drivers",
"version": "1.0.416",
"version": "1.0.417",
"description": "SQLiteCloud drivers for Typescript/Javascript in edge, web and node clients",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down
10 changes: 6 additions & 4 deletions test/database.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,11 @@ describe('Database.all', () => {
'select with one argument',
done => {
const chinook = getChinookDatabase()
chinook.all('SELECT * FROM tracks LIMIT ?', 1, (err: Error, rows: SQLiteCloudRowset) => {
chinook.all('SELECT * FROM tracks LIMIT ?', 1, (err: Error | null, rows: SQLiteCloudRow[] | undefined) => {
expect(err).toBeNull()
expect(rows).toBeDefined()
expect(rows[0]).toMatchObject({
expect(rows).toHaveLength(1)
expect(rows && rows.length > 0 ? rows[0] : rows).toMatchObject({
AlbumId: 1,
Bytes: 11170334,
Composer: 'Angus Young, Malcolm Young, Brian Johnson',
Expand All @@ -170,10 +171,11 @@ describe('Database.all', () => {
'select with one argument with array like ORMs',
done => {
const chinook = getChinookDatabase()
chinook.all('SELECT * FROM tracks LIMIT ?', [1], (err: Error, rows: SQLiteCloudRowset) => {
chinook.all('SELECT * FROM tracks LIMIT ?', [1], (err: Error | null, rows: SQLiteCloudRow[] | undefined) => {
expect(err).toBeNull()
expect(rows).toBeDefined()
expect(rows[0]).toMatchObject({
expect(rows).toHaveLength(1)
expect(rows && rows.length > 0 ? rows[0] : rows).toMatchObject({
AlbumId: 1,
Bytes: 11170334,
Composer: 'Angus Young, Malcolm Young, Brian Johnson',
Expand Down
Loading