feat: add custom name handling for proxy hosts and enhance import functionality

This commit is contained in:
Wikid82
2025-11-25 03:50:23 +00:00
parent dea012d471
commit 78b782974e
13 changed files with 251 additions and 28 deletions
@@ -140,10 +140,10 @@ describe('useImport', () => {
})
await act(async () => {
await result.current.commit({ 'test.com': 'skip' })
await result.current.commit({ 'test.com': 'skip' }, { 'test.com': 'Test' })
})
expect(api.commitImport).toHaveBeenCalledWith('session-2', { 'test.com': 'skip' })
expect(api.commitImport).toHaveBeenCalledWith('session-2', { 'test.com': 'skip' }, { 'test.com': 'Test' })
await waitFor(() => {
expect(result.current.session).toBeNull()
@@ -227,7 +227,7 @@ describe('useImport', () => {
let threw = false
await act(async () => {
try {
await result.current.commit({})
await result.current.commit({}, {})
} catch {
threw = true
}