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

View File

@@ -63,7 +63,7 @@ describe('ImportReviewTable', () => {
expect(screen.getByText('Missing required field')).toBeInTheDocument()
})
it('calls onCommit with resolutions', async () => {
it('calls onCommit with resolutions and names', async () => {
const conflicts = ['test.example.com']
render(
<ImportReviewTable
@@ -83,9 +83,10 @@ describe('ImportReviewTable', () => {
fireEvent.click(commitButton)
await waitFor(() => {
expect(mockOnCommit).toHaveBeenCalledWith({
'test.example.com': 'overwrite',
})
expect(mockOnCommit).toHaveBeenCalledWith(
{ 'test.example.com': 'overwrite' },
{ 'test.example.com': 'test.example.com' }
)
})
})