From 75ad25ccac49fdf736f24427cf7eb41ea2ea236c Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Tue, 23 Jul 2024 20:39:51 -0300 Subject: [PATCH] test(zap-split): update to be in accord with new data structure --- src/utils/zap-split.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/zap-split.test.ts b/src/utils/zap-split.test.ts index bc9527df..08454160 100644 --- a/src/utils/zap-split.test.ts +++ b/src/utils/zap-split.test.ts @@ -28,8 +28,8 @@ Deno.test('Get zap splits in DittoZapSplits format', async () => { const zapSplits = await getZapSplits(store, pubkey); assertEquals(zapSplits, { - '0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd': ['3', 'Alex creator of Ditto'], - '47259076c85f9240e852420d7213c95e95102f1de929fb60f33a2c32570c98c4': ['2', 'Patrick developer'], + '0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd': { amount: 3, message: 'Alex creator of Ditto' }, + '47259076c85f9240e852420d7213c95e95102f1de929fb60f33a2c32570c98c4': { amount: 2, message: 'Patrick developer' }, }); assertEquals(await getZapSplits(store, 'garbage'), undefined);