-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/npm_and_yarn/vite-4.5.2
- Loading branch information
Showing
6 changed files
with
61 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
packages/dapp-kit-ui/test/classes/connect-modal-manager.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ConnectModalManager, DAppKitUI } from '../../src'; | ||
|
||
DAppKitUI.configure({ | ||
nodeUrl: 'https://mainnet.vechain.org/', | ||
}); | ||
|
||
describe('ConnectModalManager', () => { | ||
it('should be a singleton', () => { | ||
const instance1 = ConnectModalManager.getInstance(DAppKitUI.wallet); | ||
const instance2 = ConnectModalManager.getInstance(DAppKitUI.wallet); | ||
expect(instance1).toBe(instance2); | ||
}); | ||
|
||
it('should not throw', () => { | ||
const instance = ConnectModalManager.getInstance(DAppKitUI.wallet); | ||
instance.open(); | ||
instance.close(); | ||
instance.closeWalletConnect(); | ||
instance.closeConnectionCertificateRequest(); | ||
}); | ||
}); |