mirror of
https://github.com/stablyai/orca.git
synced 2026-10-08 00:02:38 +00:00
test(native-chat): check the outside file by its real path too
This commit is contained in:
@@ -196,6 +196,7 @@ describe('native-chat paste folder on disk', () => {
|
||||
{ path: restored, kept: true, exists: true }
|
||||
])
|
||||
expect(isPathAllowed(secret, NO_ROOTS_STORE)).toBe(false)
|
||||
expect(isPathAllowed(realpathSync(secret), NO_ROOTS_STORE)).toBe(false)
|
||||
})
|
||||
|
||||
it('neither restores from nor sweeps a paste folder that is itself a link', async () => {
|
||||
|
||||
Reference in New Issue
Block a user