Skip to content

Commit 0121e69

Browse files
committed
Add one more test for Windows paths in harmonizeRelativePath
1 parent 7465c54 commit 0121e69

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bids-validator/utils/files/__tests__/readDir.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,10 @@ describe('readDir.js', () => {
3636
'/directory',
3737
)
3838
})
39+
it('does not mangle relative Windows paths with parent directories', () => {
40+
expect(
41+
readDir.harmonizeRelativePath('..\\..\\dataset\\directory'),
42+
).toEqual('/../dataset/directory')
43+
})
3944
})
4045
})

0 commit comments

Comments
 (0)