diff options
Diffstat (limited to 'test/parallel/test-process-binding.js')
-rw-r--r-- | test/parallel/test-process-binding.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/parallel/test-process-binding.js b/test/parallel/test-process-binding.js new file mode 100644 index 0000000000..c803a8083f --- /dev/null +++ b/test/parallel/test-process-binding.js @@ -0,0 +1,16 @@ +var assert = require('assert'); + +assert.throws( + function() { + process.binding('test'); + }, + /No such module: test/ +); + +assert.doesNotThrow(function () { + process.binding('buffer'); +}, function(err) { + if ( (err instanceof Error) ) { + return true; + } +}, "unexpected error"); |