From 8582a1cea845370b4153ebcbfe100de9a5fb64f7 Mon Sep 17 00:00:00 2001 From: David Nagy Date: Thu, 17 Oct 2024 20:31:10 +0200 Subject: [PATCH] chore: fix KeyValueDaoTest (#21) --- src/testing/keyValueDaoTest.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/testing/keyValueDaoTest.ts b/src/testing/keyValueDaoTest.ts index 83235d7..7369247 100644 --- a/src/testing/keyValueDaoTest.ts +++ b/src/testing/keyValueDaoTest.ts @@ -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[] = testItems.map(e => [e.id, e]) +const testEntries: KeyValueTuple[] = testItems.map(e => [ + e.id, + Buffer.from(`${e.id}value`), +]) export function runCommonKeyValueDaoTest(db: CommonKeyValueDB): void { const dao = new CommonKeyValueDao({