fix: replace path-option-card with glass-card in Settings.vue

Also fix TypeScript errors in test files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-10 23:58:33 +00:00
parent 98b2c098aa
commit 55a12e9bec
5 changed files with 15 additions and 15 deletions

View File

@@ -49,7 +49,7 @@ describe('RPCClient', () => {
expect(result).toEqual({ did: 'did:key:z123' })
expect(mockFetch).toHaveBeenCalledOnce()
const [url, init] = mockFetch.mock.calls[0]
const [url, init] = mockFetch.mock.calls[0]!
expect(url).toBe('/rpc/v1')
expect(init.method).toBe('POST')
expect(init.credentials).toBe('include')
@@ -61,7 +61,7 @@ describe('RPCClient', () => {
await rpcClient.call({ method: 'test', params: {} })
const [, init] = mockFetch.mock.calls[0]
const [, init] = mockFetch.mock.calls[0]!
expect(init.credentials).toBe('include')
})
@@ -150,7 +150,7 @@ describe('RPCClient', () => {
await rpcClient.call({ method: 'test' })
const body = JSON.parse(mockFetch.mock.calls[0][1].body)
const body = JSON.parse(mockFetch.mock.calls[0]![1].body)
expect(body.params).toEqual({})
})
@@ -159,7 +159,7 @@ describe('RPCClient', () => {
await rpcClient.call({ method: 'test', timeout: 5000 })
const [, init] = mockFetch.mock.calls[0]
const [, init] = mockFetch.mock.calls[0]!
expect(init.signal).toBeInstanceOf(AbortSignal)
})
})