[tests] requireModule

This commit is contained in:
Pooya Parsa 2017-05-21 20:11:16 +04:30
parent da725cb11e
commit 08fd004044
2 changed files with 8 additions and 0 deletions

View File

@ -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()
}

4
test/fixtures/module/modules/empty/index.js vendored Executable file
View File

@ -0,0 +1,4 @@
module.exports = function middlewareModule (options) {
// Empty module
}