fixing tests

This commit is contained in:
dswbx
2025-06-14 07:08:46 +02:00
parent 2ada4e9f20
commit 6e2596fb77
3 changed files with 9 additions and 11 deletions

View File

@@ -2,6 +2,7 @@ import type { TestRunner } from "core/test";
import { Connection, type FieldSpec } from "./Connection";
// @todo: add various datatypes: string, number, boolean, object, array, null, undefined, date, etc.
// @todo: add toDriver/fromDriver tests on all types and fields
export function connectionTestSuite(
testRunner: TestRunner,

View File

@@ -97,9 +97,6 @@ export abstract class SqliteConnection<Client = unknown> extends Connection<Clie
if (field.type === "boolean" && typeof value === "number") {
return value === 1;
}
if (value === null) {
return undefined;
}
return value;
}
}