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.
1 parent 06485b8 commit 6e49a11Copy full SHA for 6e49a11
lib/vows.js
@@ -162,6 +162,16 @@ function tryFinish(remaining) {
162
}
163
164
165
+//
166
+// On exit, check that all promises have been fired.
167
+// If not, print an error message.
168
169
+process.addListener('exit', function () {
170
+ if (honored + broken + errored < total) {
171
+ sys.puts('\n* ' + stylize("An EventEmitter has failed to fire.", 'red'));
172
+ }
173
+});
174
+
175
//
176
// Wrap a Node.js style async function into an EventEmmitter
177
0 commit comments