From 6811c8faeee5a856bc62560ef8024347876f583f Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Fri, 16 Oct 2015 09:35:37 +0200 Subject: [PATCH] Update index.js --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 01980acba..6508d2bd7 100644 --- a/lib/index.js +++ b/lib/index.js @@ -11,7 +11,7 @@ function applyTestFrameworkPatchWhenLoaded(mod) { if (testFrameworkPatch.applyPatch() && typeof require === 'function' && require.cache) { // Make sure that the 'it' global gets patched in every context where Unexpected is required, - // but prevent rereading index.js from disc each time: + // but prevent rereading index.js and the chain of parent modules from disc each time: for (var mod = module ; mod ; mod = mod.parent) { applyTestFrameworkPatchWhenLoaded(mod);