Permalink
Browse files

merged space in value bugfix, changed the 'no file found' detection i…

…n the test.js to err.code instead of err.errno
  • Loading branch information...
1 parent fac20a3 commit 146f21ed6521264d5220708cc92bc4208c9c68bb @shockie committed Jan 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/test.js
View
2 test/test.js
@@ -9,7 +9,7 @@ module.exports = {
},
'async read non-existing file': function(){
iniparser.parse('./files/doesnotexists.ini', function(err, config){
- assert.equal(err.errno, 2);
+ assert.equal(err.code, 'ENOENT');
assert.equal(config, null);
});
},

0 comments on commit 146f21e

Please sign in to comment.