test(native-chat): check the outside file by its real path too

This commit is contained in:
Brennan Benson
2026-10-04 00:46:30 -07:00
parent 16c61f6a8d
commit 4b9f91a5a0
@@ -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 () => {