Skip to content

Commit

Permalink
Update libsql batch responses test
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiSherman committed Mar 14, 2024
1 parent fff21fc commit 29e6b46
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions integration-tests/tests/libsql-batch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ test('batch api example', async () => {
invitedBy: null,
}]);

expect(batchResponse[1]).toEqual({ columns: [], rows: [], rowsAffected: 1, lastInsertRowid: 2n });
expect(batchResponse[1]).toEqual({ columnTypes: [], columns: [], rows: [], rowsAffected: 1, lastInsertRowid: 2n });

expect(batchResponse[2]).toEqual([
{ id: 1, name: 'John', verified: 0, invitedBy: null },
Expand Down Expand Up @@ -311,7 +311,7 @@ test('insert + findMany', async () => {
id: 1,
}]);

expect(batchResponse[1]).toEqual({ columns: [], rows: [], rowsAffected: 1, lastInsertRowid: 2n });
expect(batchResponse[1]).toEqual({ columnTypes: [], columns: [], rows: [], rowsAffected: 1, lastInsertRowid: 2n });

expect(batchResponse[2]).toEqual([
{ id: 1, name: 'John', verified: 0, invitedBy: null },
Expand Down Expand Up @@ -353,7 +353,7 @@ test('insert + findMany + findFirst', async () => {
id: 1,
}]);

expect(batchResponse[1]).toEqual({ columns: [], rows: [], rowsAffected: 1, lastInsertRowid: 2n });
expect(batchResponse[1]).toEqual({ columnTypes: [], columns: [], rows: [], rowsAffected: 1, lastInsertRowid: 2n });

expect(batchResponse[2]).toEqual([
{ id: 1, name: 'John', verified: 0, invitedBy: null },
Expand Down Expand Up @@ -400,7 +400,7 @@ test('insert + db.all + db.get + db.values + db.run', async () => {
id: 1,
}]);

expect(batchResponse[1]).toEqual({ columns: [], rows: [], rowsAffected: 1, lastInsertRowid: 2n });
expect(batchResponse[1]).toEqual({ columnTypes: [], columns: [], rows: [], rowsAffected: 1, lastInsertRowid: 2n });

expect(batchResponse[2]).toEqual([
{ id: 1, name: 'John', verified: 0, invited_by: null },
Expand Down Expand Up @@ -451,7 +451,7 @@ test('insert + findManyWith + db.all', async () => {
id: 1,
}]);

expect(batchResponse[1]).toEqual({ columns: [], rows: [], rowsAffected: 1, lastInsertRowid: 2n });
expect(batchResponse[1]).toEqual({ columnTypes: [], columns: [], rows: [], rowsAffected: 1, lastInsertRowid: 2n });

expect(batchResponse[2]).toEqual([
{ id: 1, name: 'John', verified: 0, invitedBy: null },
Expand Down Expand Up @@ -503,7 +503,7 @@ test('insert + update + select + select partial', async () => {
id: 1,
}]);

expect(batchResponse[1]).toEqual({ columns: [], rows: [], rowsAffected: 1, lastInsertRowid: 1n });
expect(batchResponse[1]).toEqual({ columnTypes: [], columns: [], rows: [], rowsAffected: 1, lastInsertRowid: 1n });

expect(batchResponse[2]).toEqual([
{ id: 1, name: 'Dan', verified: 0, invitedBy: null },
Expand Down Expand Up @@ -553,7 +553,7 @@ test('insert + delete + select + select partial', async () => {
id: 1,
}]);

expect(batchResponse[1]).toEqual({ columns: [], rows: [], rowsAffected: 1, lastInsertRowid: 2n });
expect(batchResponse[1]).toEqual({ columnTypes: [], columns: [], rows: [], rowsAffected: 1, lastInsertRowid: 2n });

expect(batchResponse[2]).toEqual([
{ id: 1, invitedBy: null },
Expand Down

0 comments on commit 29e6b46

Please sign in to comment.