@meshconnect/uwc-react 0.11.15-snapshot.7ad9e02 → 0.11.15-snapshot.aad9c7f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshconnect/uwc-react",
|
|
3
|
-
"version": "0.11.15-snapshot.
|
|
3
|
+
"version": "0.11.15-snapshot.aad9c7f",
|
|
4
4
|
"description": "React hooks and components for Universal Wallet Connector",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"src"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@meshconnect/uwc-
|
|
20
|
-
"@meshconnect/uwc-
|
|
19
|
+
"@meshconnect/uwc-core": "1.10.0-snapshot.aad9c7f",
|
|
20
|
+
"@meshconnect/uwc-types": "0.23.0-snapshot.aad9c7f"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": "^18.0.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { act } from 'react'
|
|
2
|
-
import { describe, it, expect, vi
|
|
2
|
+
import { describe, it, expect, vi } from 'vitest'
|
|
3
3
|
import { createRoot } from 'react-dom/client'
|
|
4
4
|
import { ConnectionContext } from '../providers/ConnectionProvider'
|
|
5
5
|
import { useSignMessage } from './useSignMessage'
|
|
@@ -96,24 +96,6 @@ function renderHookInContext(
|
|
|
96
96
|
// ---------------------------------------------------------------------------
|
|
97
97
|
|
|
98
98
|
describe('useSignMessage', () => {
|
|
99
|
-
let container: HTMLDivElement
|
|
100
|
-
let root: ReturnType<typeof createRoot>
|
|
101
|
-
|
|
102
|
-
beforeEach(() => {
|
|
103
|
-
container = document.createElement('div')
|
|
104
|
-
document.body.appendChild(container)
|
|
105
|
-
root = createRoot(container)
|
|
106
|
-
})
|
|
107
|
-
|
|
108
|
-
afterEach(async () => {
|
|
109
|
-
await act(async () => {
|
|
110
|
-
root.unmount()
|
|
111
|
-
})
|
|
112
|
-
if (document.body.contains(container)) {
|
|
113
|
-
document.body.removeChild(container)
|
|
114
|
-
}
|
|
115
|
-
})
|
|
116
|
-
|
|
117
99
|
it('resolves to the full SignatureResult { signature, address }', async () => {
|
|
118
100
|
const mockSign = vi.fn().mockResolvedValue(RESULT)
|
|
119
101
|
const ctxValue = makeContextValue(makeConnector(mockSign))
|