0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/parallel/test-process-binding.js
Roman Reiss 647861befb test: fix issues for space-in-parens ESLint rule
PR-URL: https://github.com/nodejs/node/pull/4753
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
2016-01-19 04:09:39 +01:00

19 lines
318 B
JavaScript

'use strict';
require('../common');
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');