From aebae0ac3094195756d32fa6f297e762cc46d6ee Mon Sep 17 00:00:00 2001 From: Daniel Werner Date: Fri, 30 Aug 2024 10:04:55 -0700 Subject: [PATCH] indexer-common: add additional expects to log value of unallocate action in tests --- .../src/indexer-management/__tests__/allocations.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/indexer-common/src/indexer-management/__tests__/allocations.test.ts b/packages/indexer-common/src/indexer-management/__tests__/allocations.test.ts index a240206a9..72b8e9acb 100644 --- a/packages/indexer-common/src/indexer-management/__tests__/allocations.test.ts +++ b/packages/indexer-common/src/indexer-management/__tests__/allocations.test.ts @@ -144,7 +144,9 @@ describe('Allocation Manager', () => { // Unallocate test action expect(unallocate.action.type).toBe(ActionType.UNALLOCATE) + expect(unallocate.allocates).toStrictEqual(parseGRT('0')) expect(unallocate.allocates.isZero()).toBeTruthy() + expect(unallocate.rewards).toStrictEqual(parseGRT('0')) expect(unallocate.rewards.isZero()).toBeFalsy() expect(unallocate.unallocates).toStrictEqual(parseGRT('10000')) expect(unallocate.balance).toStrictEqual(