mirror of https://github.com/lukechilds/node.git
Jackson Tian
10 years ago
committed by
Fedor Indutny
2 changed files with 22 additions and 1 deletions
@ -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"); |
Loading…
Reference in new issue