mirror of
https://github.com/JimLiu/baoyu-skills.git
synced 2026-08-08 01:43:03 +08:00
Fix WeChat image upload fallback and WebP clipboard
This commit is contained in:
@@ -12,3 +12,9 @@ test("macOS image clipboard copy avoids Swift AppKit JIT", () => {
|
||||
assert.match(clipboardScript, /copyImageMacWithOsascript/);
|
||||
assert.doesNotMatch(clipboardScript, /await runCommand\('swift', \[swiftPath, 'image', imagePath\]\)/);
|
||||
});
|
||||
|
||||
test("macOS image clipboard copy converts WebP to PNG before AppleScript", () => {
|
||||
assert.match(clipboardScript, /convertWebpMacToPng/);
|
||||
assert.match(clipboardScript, /path\.extname\(imagePath\)\.toLowerCase\(\) === '\.webp'/);
|
||||
assert.match(clipboardScript, /await copyImageMacWithOsascript\(pngPath\)/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user