feat: expand secure assistant workflows
Harden runtime execution and add local knowledge, Smart Heartbeat, usage visibility, responsive product surfaces, and cross-platform packaging support. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
parent
6ef1795b81
commit
b3fdf96962
@@ -0,0 +1,34 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { resolveWindowIcon } from './window'
|
||||
|
||||
describe('resolveWindowIcon', () => {
|
||||
it('uses the packaged Windows taskbar icon', () => {
|
||||
expect(
|
||||
resolveWindowIcon({
|
||||
platform: 'win32',
|
||||
isPackaged: true,
|
||||
appPath: 'C:\\app',
|
||||
resourcesPath: 'C:\\app\\resources'
|
||||
})
|
||||
).toBe('C:\\app\\resources\\icon.ico')
|
||||
})
|
||||
|
||||
it('uses build assets during development and leaves macOS unset', () => {
|
||||
expect(
|
||||
resolveWindowIcon({
|
||||
platform: 'linux',
|
||||
isPackaged: false,
|
||||
appPath: '/opt/goodbuddy',
|
||||
resourcesPath: '/opt/goodbuddy/resources'
|
||||
})
|
||||
).toBe('/opt/goodbuddy/build/icon.png')
|
||||
expect(
|
||||
resolveWindowIcon({
|
||||
platform: 'darwin',
|
||||
isPackaged: true,
|
||||
appPath: '/Applications/GoodBuddy.app',
|
||||
resourcesPath: '/Applications/GoodBuddy.app/Contents/Resources'
|
||||
})
|
||||
).toBeUndefined()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user