Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4773456 commit 712293eCopy full SHA for 712293e
1 file changed
tests/tests/node/node.js
@@ -32,17 +32,11 @@ describe('require', function() {
32
33
describe('node', function() {
34
35
- var mocha_callback;
36
-
37
before(function() {
38
- mocha_callback = process.listeners('uncaughtException')[1];
+ var mocha_callback = process.listeners('uncaughtException')[1];
39
process.removeListener('uncaughtException', mocha_callback);
40
});
41
42
- after(function() {
43
- process.on('uncaughtException', mocha_callback);
44
- });
45
46
describe('process', function() {
47
it('uncaughtException should have a default listener', function() {
48
assert.equal(process.listeners('uncaughtException').length, 1);
0 commit comments