TooTallNate/node — comment on commit ea35c0a5aa67cd9906b3144597400888b5284b25
File:  line 0
By koichik:

Why don't you use `assert.throws()`?

```
assert.throws(function() {
require(common.fixturesDir + '/DOES_NOT_EXIST');
}, function(e) {
assert.equal(e.code, 'MODULE_NOT_FOUND');
return true;
});
```