/*global after*/
module.exports = function notifyPendingPromise(promise) {
    if (typeof after === 'function') {
        after(function () {
            if (promise.isPending()) {
                throw new Error('You have created a promise that was not returned in the it block');
            }
        });
    }
};

@@ -11,10 +11,73 @@
 fter
-*/
+Each*/%0Avar pendingPromises = %5B%5D;%0Avar afterEachRegistered = false;
 %0Amod
@@ -127,24 +127,59 @@
 (promise) %7B%0A
+    pendingPromises.push(promise);%0A
     if (type
@@ -186,16 +186,20 @@
 of after
+Each
  === 'fu
@@ -209,56 +209,168 @@
 ion'
-) %7B%0A        after(function () %7B%0A            if (
+ && !afterEachRegistered) %7B%0A        afterEachRegistered = true;%0A        afterEach(function () %7B%0A            if (pendingPromises.some(function (promise) %7Breturn 
 prom
@@ -384,16 +384,19 @@
 ending()
+;%7D)
 ) %7B%0A    
@@ -411,25 +411,99 @@
     
-throw new Error('
+var displayName = this.currentTest.title;%0A                throw new Error(displayName + ': 
 You 

Use afterEach instead.