diff options
author | Johannes Ewald <johannes.ewald@peerigon.com> | 2015-11-14 20:59:06 +0300 |
---|---|---|
committer | Johannes Ewald <johannes.ewald@peerigon.com> | 2015-11-14 20:59:06 +0300 |
commit | 5a8ba82b39f69f3750ddf83c6f6fc6f6e2ecb2a2 (patch) | |
tree | a411f44c7c03d99f4412a6bcdbf2798b550fb733 /lib/testModules/implicitGlobal.js | |
parent | ac0c8a37250513b49670739ac6f95a5805687251 (diff) |
Move shared test cases into lib folder
Since new versions of npm respect the .npmignore even when it comes
from git urls, we need to move the shared test cases into the lib folder
in order to provide these cases to other modules which port rewire's
functionality to other environments.
As discussed at https://github.com/jhnns/rewire-webpack/pull/18
Diffstat (limited to 'lib/testModules/implicitGlobal.js')
-rw-r--r-- | lib/testModules/implicitGlobal.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/testModules/implicitGlobal.js b/lib/testModules/implicitGlobal.js new file mode 100644 index 0000000..3048742 --- /dev/null +++ b/lib/testModules/implicitGlobal.js @@ -0,0 +1,6 @@ +implicitGlobal = "this is an implicit global var ..." + + "yes, it's bad coding style but there are still some libs out there"; + +module.exports = function () { + return undefinedImplicitGlobal; +}; |