fix: restore image paste and image tool-result handling (#308)
This commit is contained in:
22
src/hooks/usePasteHandler.test.ts
Normal file
22
src/hooks/usePasteHandler.test.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { expect, test } from 'bun:test'
|
||||
import { supportsClipboardImageFallback } from './usePasteHandler.ts'
|
||||
|
||||
test('supports clipboard image fallback on Windows', () => {
|
||||
expect(supportsClipboardImageFallback('windows')).toBe(true)
|
||||
})
|
||||
|
||||
test('supports clipboard image fallback on macOS', () => {
|
||||
expect(supportsClipboardImageFallback('macos')).toBe(true)
|
||||
})
|
||||
|
||||
test('supports clipboard image fallback on Linux', () => {
|
||||
expect(supportsClipboardImageFallback('linux')).toBe(true)
|
||||
})
|
||||
|
||||
test('does not support clipboard image fallback on WSL', () => {
|
||||
expect(supportsClipboardImageFallback('wsl')).toBe(false)
|
||||
})
|
||||
|
||||
test('does not support clipboard image fallback on unknown platforms', () => {
|
||||
expect(supportsClipboardImageFallback('unknown')).toBe(false)
|
||||
})
|
||||
Reference in New Issue
Block a user