From 08fd004044925d0f18b8d0b1f1d938aa613aea87 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sun, 21 May 2017 20:11:16 +0430 Subject: [PATCH] [tests] requireModule --- test/fixtures/module/modules/basic/index.js | 4 ++++ test/fixtures/module/modules/empty/index.js | 4 ++++ 2 files changed, 8 insertions(+) create mode 100755 test/fixtures/module/modules/empty/index.js diff --git a/test/fixtures/module/modules/basic/index.js b/test/fixtures/module/modules/basic/index.js index 5e1513a782..16cb08959e 100755 --- a/test/fixtures/module/modules/basic/index.js +++ b/test/fixtures/module/modules/basic/index.js @@ -22,5 +22,9 @@ module.exports = function basicModule (options, resolve) { // Do nothing! }) + // Require same module twice + this.requireModule('~/modules/empty/index.js') + this.requireModule('~/modules/empty/index.js') + resolve() } diff --git a/test/fixtures/module/modules/empty/index.js b/test/fixtures/module/modules/empty/index.js new file mode 100755 index 0000000000..b994d6d28a --- /dev/null +++ b/test/fixtures/module/modules/empty/index.js @@ -0,0 +1,4 @@ + +module.exports = function middlewareModule (options) { + // Empty module +}