diff --git a/packages/pkp-client/src/lib/wallet-factory.spec.ts b/packages/pkp-client/src/lib/wallet-factory.spec.ts index f48fde1cd6..ec520ea204 100644 --- a/packages/pkp-client/src/lib/wallet-factory.spec.ts +++ b/packages/pkp-client/src/lib/wallet-factory.spec.ts @@ -66,7 +66,7 @@ describe('WalletFactory', () => { }, }; - expect(WalletFactory.createWallet('eth', ethProp)).toThrowError( + expect(() => WalletFactory.createWallet('eth', ethProp)).toThrowError( 'controllerAuthSig and authContext are defined, can only use one or the other' ); });