feat: publish HoloLake model-native living system source
This commit is contained in:
parent
6ad10edde1
commit
c395dd3a99
2467 changed files with 615073 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
import { describe, expect, it } from 'vitest'
|
||||
import { canWritePathToVault, isPathInsideVaultRoot } from './vaultPathContainment'
|
||||
|
||||
describe('vault path containment', () => {
|
||||
it('matches expanded note paths against tilde vault roots', () => {
|
||||
expect(canWritePathToVault(
|
||||
'/Users/luca/Workspace/refactoring-vault/notes/example.md',
|
||||
'~/Workspace/refactoring-vault',
|
||||
)).toBe(true)
|
||||
})
|
||||
|
||||
it('rejects expanded paths outside a tilde vault root', () => {
|
||||
expect(isPathInsideVaultRoot(
|
||||
'/Users/luca/Workspace/refactoring-vault-archive/notes/example.md',
|
||||
'~/Workspace/refactoring-vault',
|
||||
)).toBe(false)
|
||||
})
|
||||
})
|
||||
Loading…
Reference in a new issue