We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b006639 + bd1da7c commit 78d2407Copy full SHA for 78d2407
tests/automatic_tests/node/mocha_test.js
@@ -32,10 +32,14 @@ describe('require', function() {
32
33
describe('node', function() {
34
35
+ var mocha_callback = null;
36
before(function() {
- var mocha_callback = process.listeners('uncaughtException')[1];
37
+ mocha_callback = process.listeners('uncaughtException')[1];
38
process.removeListener('uncaughtException', mocha_callback);
39
});
40
+ after(function(){
41
+ process.on('uncaughtException',mocha_callback);
42
+ })
43
44
describe('process', function() {
45
it('uncaughtException should have a default listener', function() {
0 commit comments