Skip to content

Commit

Permalink
Comment sqliteVec
Browse files Browse the repository at this point in the history
  • Loading branch information
ospfranco committed Aug 28, 2024
1 parent 3779a89 commit 3bb93c9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions example/src/tests/dbsetup.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@ const expectedVersion = isLibsql()
? '3.44.2'
: '3.45.1';

const expectedSqliteVecVersion = 'v0.1.2-alpha.7';
// const expectedSqliteVecVersion = 'v0.1.2-alpha.7';

export function dbSetupTests() {
describe('DB setup tests', () => {
it('Should match the sqlite_vec version', async () => {
let db = open({
name: 'versionTest.sqlite',
});
// it('Should match the sqlite_vec version', async () => {
// let db = open({
// name: 'versionTest.sqlite',
// });

const res = db.execute('select vec_version();');
// const res = db.execute('select vec_version();');

expect(res.rows?._array[0]['vec_version()']).to.equal(
expectedSqliteVecVersion,
);
// expect(res.rows?._array[0]['vec_version()']).to.equal(
// expectedSqliteVecVersion,
// );

db.close();
});
// db.close();
// });

it(`Should match the sqlite expected version ${expectedVersion}`, async () => {
let db = open({
Expand Down

0 comments on commit 3bb93c9

Please sign in to comment.