Skip to content

Commit ac38ba9

Browse files
committed
test consolidate
1 parent 881fb94 commit ac38ba9

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

test/parallel/test-sqlite-data-types.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ suite('data binding and mapping', () => {
4646
stmt.run(4, 99n, 0xf, '', new Uint8Array()),
4747
{ changes: 1, lastInsertRowid: 4 },
4848
);
49-
t.assert.deepStrictEqual(
50-
stmt.run(5, true, false, true, null),
51-
{ changes: 1, lastInsertRowid: 5 },
52-
);
5349

5450
const query = db.prepare('SELECT * FROM types WHERE key = ?');
5551
t.assert.deepStrictEqual(query.get(1), {
@@ -84,14 +80,9 @@ suite('data binding and mapping', () => {
8480
text: '',
8581
buf: new Uint8Array(),
8682
});
87-
t.assert.deepStrictEqual(query.get(5), {
88-
__proto__: null,
89-
key: 5,
90-
int: 1,
91-
double: 0,
92-
text: '1',
93-
buf: null,
94-
});
83+
84+
t.assert.deepStrictEqual(stmt.run(5, true, false, true, null), { changes: 1, lastInsertRowid: 5 });
85+
t.assert.deepStrictEqual(query.get(5), { __proto__: null, key: 5, int: 1, double: 0, text: '1', buf: null });
9586
});
9687

9788
test('large strings are bound correctly', (t) => {

0 commit comments

Comments
 (0)