mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
test: update to use author_stats table
This commit is contained in:
parent
2727523540
commit
1b6e9160ec
1 changed files with 4 additions and 1 deletions
|
|
@ -6,9 +6,12 @@ import { getPubkeysBySearch } from '@/utils/search.ts';
|
|||
Deno.test('fuzzy search works', async () => {
|
||||
await using db = await createTestDB();
|
||||
|
||||
await db.kysely.insertInto('author_search').values({
|
||||
await db.kysely.insertInto('author_stats').values({
|
||||
pubkey: '47259076c85f9240e852420d7213c95e95102f1de929fb60f33a2c32570c98c4',
|
||||
search: 'patrickReiis patrickdosreis.com',
|
||||
notes_count: 0,
|
||||
followers_count: 0,
|
||||
following_count: 0,
|
||||
}).execute();
|
||||
|
||||
assertEquals(await getPubkeysBySearch(db.kysely, { q: 'pat rick', limit: 1, followedPubkeys: new Set() }), new Set());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue