From 067119a64a74e1fe0986a4349de1057868eb4dec Mon Sep 17 00:00:00 2001 From: Davide Carpini Date: Mon, 12 Feb 2024 16:42:50 +0100 Subject: [PATCH] fix: tests --- .../dapp-kit/test/wallet-tests/sync.test.ts | 2 +- .../wallet-tests/veworld-extension.test.ts | 22 ------------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/packages/dapp-kit/test/wallet-tests/sync.test.ts b/packages/dapp-kit/test/wallet-tests/sync.test.ts index 10457d08..5d9709a7 100644 --- a/packages/dapp-kit/test/wallet-tests/sync.test.ts +++ b/packages/dapp-kit/test/wallet-tests/sync.test.ts @@ -82,7 +82,7 @@ describe('sync', () => { ); }); - it('get available sources - should not include veworld', () => { + it('get available sources - should not include sync', () => { const connex = createUnitTestConnex(); const sources = connex.wallet.state.availableSources; diff --git a/packages/dapp-kit/test/wallet-tests/veworld-extension.test.ts b/packages/dapp-kit/test/wallet-tests/veworld-extension.test.ts index f9d0293d..75b68aff 100644 --- a/packages/dapp-kit/test/wallet-tests/veworld-extension.test.ts +++ b/packages/dapp-kit/test/wallet-tests/veworld-extension.test.ts @@ -40,26 +40,4 @@ describe('veworld', () => { expect(sources).toContain('veworld'); }); }); - - describe('is NOT in veworld browser', () => { - beforeEach(() => { - window.vechain = undefined; - }); - - it('not installed - should throw error', () => { - const connex = createUnitTestConnex(); - - expect(() => connex.wallet.setSource('veworld')).toThrowError( - 'VeWorld Extension is not installed', - ); - }); - - it('get available sources - should not include veworld', () => { - const connex = createUnitTestConnex(); - - const sources = connex.wallet.state.availableSources; - - expect(sources).not.toContain('veworld'); - }); - }); });