Skip to content

Commit

Permalink
chore: fix KeyValueDaoTest (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnagydavid authored Oct 17, 2024
1 parent 67fda39 commit 8582a1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/testing/keyValueDaoTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import { createTestItemsBM, TEST_TABLE, TestItemBM } from './test.model'

const testItems = createTestItemsBM(4)
const testIds = testItems.map(e => e.id)
const testEntries: KeyValueTuple<string, TestItemBM>[] = testItems.map(e => [e.id, e])
const testEntries: KeyValueTuple<string, any>[] = testItems.map(e => [
e.id,
Buffer.from(`${e.id}value`),
])

export function runCommonKeyValueDaoTest(db: CommonKeyValueDB): void {
const dao = new CommonKeyValueDao<string, TestItemBM>({
Expand Down

0 comments on commit 8582a1c

Please sign in to comment.