From ecfda6bc8bb41911449a8d6b125734fab02a5111 Mon Sep 17 00:00:00 2001 From: Tuyen Nguyen Date: Wed, 18 Sep 2024 15:49:14 +0700 Subject: [PATCH] fix: state-transition CachedBeaconState unit test --- packages/state-transition/test/unit/cachedBeaconState.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/state-transition/test/unit/cachedBeaconState.test.ts b/packages/state-transition/test/unit/cachedBeaconState.test.ts index ca5b622c086..492aedeab07 100644 --- a/packages/state-transition/test/unit/cachedBeaconState.test.ts +++ b/packages/state-transition/test/unit/cachedBeaconState.test.ts @@ -84,7 +84,7 @@ describe("CachedBeaconState", () => { expect(state1.epochCtx.getValidatorIndex(pubkey1)).toBe(index1); expect(state2.epochCtx.getValidatorIndex(pubkey1)).toBe(index1); - expect(state1.epochCtx.getValidatorIndex(pubkey2)).toBe(undefined); + expect(state1.epochCtx.getValidatorIndex(pubkey2)).toBe(null); expect(state2.epochCtx.getValidatorIndex(pubkey2)).toBe(index2); });