mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
[tests] requireModule
This commit is contained in:
parent
da725cb11e
commit
08fd004044
4
test/fixtures/module/modules/basic/index.js
vendored
4
test/fixtures/module/modules/basic/index.js
vendored
@ -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
4
test/fixtures/module/modules/empty/index.js
vendored
Executable file
@ -0,0 +1,4 @@
|
||||
|
||||
module.exports = function middlewareModule (options) {
|
||||
// Empty module
|
||||
}
|
Loading…
Reference in New Issue
Block a user