Skip to content

Commit 57c839b

Browse files
author
Brian
committed
Improve tests with more specific assertions
1 parent f7ac6f8 commit 57c839b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/__tests__/bids_files.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('bids_files', () => {
1616
},
1717
}
1818
const match = checkSidecarForDatafiles(file, fileList)
19-
assert(match == true)
19+
assert.isTrue(match)
2020
})
2121

2222
it('does not match invalid datafile formats', () => {
@@ -32,7 +32,7 @@ describe('bids_files', () => {
3232
},
3333
}
3434
const match = checkSidecarForDatafiles(file, fileList)
35-
assert(match == false)
35+
assert.isFalse(match)
3636
})
3737
})
3838
})

0 commit comments

Comments
 (0)