Skip to content

Commit 34ef6ee

Browse files
authored
Merge pull request #763 from nellh/defacemask-test
Add a test for defacemask filename bug
2 parents 05c7700 + 28ad752 commit 34ef6ee

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const type = require('../type.js')
2+
3+
describe('type.js', () => {
4+
describe('isBids()', () => {
5+
it('does not throw an error for valid defacemask filenames', () => {
6+
expect(
7+
type.isBIDS(
8+
'/sub-rid000043/anat/sub-rid000043_run-02_mod-T1w_defacemask.nii.gz',
9+
),
10+
).toBe(true)
11+
})
12+
})
13+
})

0 commit comments

Comments
 (0)