mirror of
https://github.com/nodejs/node.git
synced 2025-05-02 16:22:29 +00:00

common.js contains code that checks for variables leaking into the global namespace. Load common.js in all tests that do not intentionally leak variables. PR-URL: https://github.com/nodejs/node/pull/3095 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
11 lines
228 B
JavaScript
11 lines
228 B
JavaScript
'use strict';
|
|
require('../common');
|
|
var EventEmitter = require('events');
|
|
var assert = require('assert');
|
|
|
|
var EE = new EventEmitter();
|
|
|
|
assert.throws(function() {
|
|
EE.emit('error', 'Accepts a string');
|
|
}, /Accepts a string/);
|