Skip to content

Commit

Permalink
fix: update coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain committed Feb 15, 2024
1 parent db9a0ac commit 90d320a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/dapp-kit-ui/test/classes/custom-wc-modal.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { describe } from 'vitest';
import { CustomWalletConnectModal } from '../../src';

describe('CustomWalletConnectModal', () => {
it('should be a singleton', () => {
const modal = CustomWalletConnectModal.getInstance();
const modal2 = CustomWalletConnectModal.getInstance();

expect(modal).toBe(modal2);
});

it('should not throw', () => {
const modal = CustomWalletConnectModal.getInstance();

modal.closeModal();
modal.askForConnectionCertificate();
modal.onConnectionCertificateSigned();
});
});

0 comments on commit 90d320a

Please sign in to comment.