Skip to content

Commit a46ebe9

Browse files
committed
Updated tests [skip ci]
1 parent 111eb86 commit a46ebe9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/pg/index.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test('example', async () => {
77
await client.connect();
88

99
await client.query('CREATE EXTENSION IF NOT EXISTS vector');
10-
await pgvector.registerType(client);
10+
await pgvector.registerTypes(client);
1111

1212
await client.query('DROP TABLE IF EXISTS pg_items');
1313
await client.query('CREATE TABLE pg_items (id serial PRIMARY KEY, embedding vector(3), half_embedding halfvec(3), binary_embedding bit(3), sparse_embedding sparsevec(3))');

tests/sequelize/index.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { l2Distance, maxInnerProduct, cosineDistance, l1Distance, hammingDistanc
44
import { SparseVector } from 'pgvector';
55

66
test('example', async () => {
7-
pgvector.registerType(Sequelize);
7+
pgvector.registerTypes(Sequelize);
88

99
let sequelize = new Sequelize('postgres://localhost/pgvector_node_test', {
1010
logging: false

0 commit comments

Comments
 (0)