feat: release OpsXShell 2.1.0 native Tauri edition
This commit is contained in:
1 parent
e9a0d21758
commit
a3dba0c6ed
311 files changed
+31748
-14897
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { formatSshLinkTarget } from '../../src/utils/sshLink'
|
||||
|
||||
describe('formatSshLinkTarget', () => {
|
||||
it('formats default and custom ports', () => {
|
||||
expect(formatSshLinkTarget({ host: 'example.com', port: 22, username: 'root' })).toBe('root@example.com')
|
||||
expect(formatSshLinkTarget({ host: 'example.com', port: 2222, username: 'admin' })).toBe('admin@example.com:2222')
|
||||
})
|
||||
|
||||
it('keeps IPv6 unambiguous', () => {
|
||||
expect(formatSshLinkTarget({ host: '2001:db8::1', port: 22, username: 'root' })).toBe('root@[2001:db8::1]')
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user