From 1afd01b35c987abe5cdd756bb9545ad951d54dfc Mon Sep 17 00:00:00 2001 From: Alireza Haghshenas Date: Wed, 20 Sep 2023 14:29:29 -0700 Subject: [PATCH] chore: fix test compilation error --- cspell.json | 3 +++ packages/taquito-local-forging/test/codec.spec.ts | 4 ++-- .../taquito/test/contract/rpc-contract-provider.spec.ts | 6 ++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/cspell.json b/cspell.json index 86b6262dca..89e039f43a 100644 --- a/cspell.json +++ b/cspell.json @@ -22,6 +22,7 @@ "Ejara", "entrypoints", "FAILWITH", + "finalizable", "flextesa", "florencenet", "forgeable", @@ -80,6 +81,8 @@ "unopt", "UNPAIR", "unstake", + "unstaked", + "unstakes", "zarith" ], "files": [ diff --git a/packages/taquito-local-forging/test/codec.spec.ts b/packages/taquito-local-forging/test/codec.spec.ts index aa761ef8fb..8dd6c64a00 100644 --- a/packages/taquito-local-forging/test/codec.spec.ts +++ b/packages/taquito-local-forging/test/codec.spec.ts @@ -223,7 +223,7 @@ describe('Tests for Entrypoint functions and for encode and decoder error messag expect(() => entrypointDecoder( Uint8ArrayConsumer.fromHexString( - '085c8244b8de7d57795962c1bfc855d0813f8c61eddf3795f804ccdea3e4c82ae95c8244b8de7d57795962c1bfc855d0813f8c61eddf3795f804ccdea3e4c82ae9' + '0a5c8244b8de7d57795962c1bfc855d0813f8c61eddf3795f804ccdea3e4c82ae95c8244b8de7d57795962c1bfc855d0813f8c61eddf3795f804ccdea3e4c82ae9' ) ) ).toThrow(OversizedEntryPointError); @@ -231,7 +231,7 @@ describe('Tests for Entrypoint functions and for encode and decoder error messag expect(() => entrypointDecoder( Uint8ArrayConsumer.fromHexString( - '085c8244b8de7d57795962c1bfc855d0813f8c61eddf3795f804ccdea3e4c82ae95c8244b8de7d57795962c1bfc855d0813f8c61eddf3795f804ccdea3e4c82ae9' + '0a5c8244b8de7d57795962c1bfc855d0813f8c61eddf3795f804ccdea3e4c82ae95c8244b8de7d57795962c1bfc855d0813f8c61eddf3795f804ccdea3e4c82ae9' ) ) ).toThrow( diff --git a/packages/taquito/test/contract/rpc-contract-provider.spec.ts b/packages/taquito/test/contract/rpc-contract-provider.spec.ts index 8433d0d2eb..c51c6fcad5 100644 --- a/packages/taquito/test/contract/rpc-contract-provider.spec.ts +++ b/packages/taquito/test/contract/rpc-contract-provider.spec.ts @@ -89,6 +89,9 @@ describe('RpcContractProvider test', () => { smartRollupAddMessages: jest.Mock; contractCall: jest.Mock; smartRollupOriginate: jest.Mock; + stake: jest.Mock; + unstake: jest.Mock; + finalizeUnstake: jest.Mock; }; beforeEach(() => { @@ -150,6 +153,9 @@ describe('RpcContractProvider test', () => { smartRollupAddMessages: jest.fn(), contractCall: jest.fn(), smartRollupOriginate: jest.fn(), + stake: jest.fn(), + unstake: jest.fn(), + finalizeUnstake: jest.fn(), }; // Required for operations confirmation polling