{"action":"opened","issue":{"url":"https://api.github.com/repos/Squishymedia/bids-validator/issues/20","labels_url":"https://api.github.com/repos/Squishymedia/bids-validator/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/Squishymedia/bids-validator/issues/20/comments","events_url":"https://api.github.com/repos/Squishymedia/bids-validator/issues/20/events","html_url":"https://github.com/Squishymedia/bids-validator/issues/20","id":107613423,"number":20,"title":"Tests are out of data","user":{"login":"chrisfilo","id":238759,"avatar_url":"https://avatars.githubusercontent.com/u/238759?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisfilo","html_url":"https://github.com/chrisfilo","followers_url":"https://api.github.com/users/chrisfilo/followers","following_url":"https://api.github.com/users/chrisfilo/following{/other_user}","gists_url":"https://api.github.com/users/chrisfilo/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisfilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisfilo/subscriptions","organizations_url":"https://api.github.com/users/chrisfilo/orgs","repos_url":"https://api.github.com/users/chrisfilo/repos","events_url":"https://api.github.com/users/chrisfilo/events{/privacy}","received_events_url":"https://api.github.com/users/chrisfilo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-21T22:47:17Z","updated_at":"2015-09-21T22:47:17Z","closed_at":null,"body":"\t$ npm test\r\n\t\r\n\t> bids-validator@0.3.3 test /Users/filo/drive/workspace/bids-validator-1\r\n\t> mocha tests/\r\n\t\r\n\t\r\n\t\r\n\t  BIDS\r\n\t    1) should verify that NifTi files are compressed using gzip.\r\n\t\r\n\t  JSON\r\n\t    2) should catch missing closing brackets\r\n\t    3) should have key/value pair for \"repetition_time\"\r\n\t\r\n\t  TSV\r\n\t    ✓ should not allow contiguous spaces\r\n\t    ✓ should not allow different length rows\r\n\t    ✓ should not allow headers to begin with numbers\r\n\t\r\n\t\r\n\t  3 passing (24ms)\r\n\t  3 failing\r\n\t\r\n\t  1) BIDS should verify that NifTi files are compressed using gzip.:\r\n\t     TypeError: path must be a string\r\n\t      at TypeError (native)\r\n\t      at Object.fs.readdirSync (fs.js:813:18)\r\n\t      at getFiles (utils.js:85:20)\r\n\t      at Object.readDir (utils.js:66:17)\r\n\t      at Object.module.exports [as BIDS] (validators/bids.js:211:11)\r\n\t      at Context.<anonymous> (tests/bids.spec.js:18:18)\r\n\t\r\n\t  2) JSON should catch missing closing brackets:\r\n\t     TypeError: Cannot read property 'hasOwnProperty' of null\r\n\t      at repetitionTime (validators/json.js:64:21)\r\n\t      at Object.module.exports [as JSON] (validators/json.js:27:13)\r\n\t      at Context.<anonymous> (tests/json.spec.js:7:12)\r\n\t\r\n\t  3) JSON should have key/value pair for \"repetition_time\":\r\n\t     TypeError: callback is not a function\r\n\t      at Object.module.exports [as JSON] (validators/json.js:31:9)\r\n\t      at Context.<anonymous> (tests/json.spec.js:14:12)\r\n\t\r\n\t\r\n\t\r\n\tnpm ERR! Test failed.  See above for more details.\r\n\t\r\nIt seems that the tests are out of date - for example the .nii.gz tests calls the validator with a dictionary of files instead of a dir name."}}