mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
test(module): code coverage
This commit is contained in:
parent
44c6a25247
commit
30b5387f95
@ -96,7 +96,7 @@ class Module {
|
||||
return
|
||||
}
|
||||
// Allow using babel style array options
|
||||
if(Array.isArray(moduleOpts)) {
|
||||
if (Array.isArray(moduleOpts)) {
|
||||
moduleOpts = {
|
||||
src: moduleOpts[0],
|
||||
options: moduleOpts[1]
|
||||
|
9
test/fixtures/module/nuxt.config.js
vendored
9
test/fixtures/module/nuxt.config.js
vendored
@ -2,8 +2,13 @@ module.exports = {
|
||||
loading: true,
|
||||
modules: [
|
||||
'~modules/basic',
|
||||
'~/modules/middleware',
|
||||
'./modules/template'
|
||||
{
|
||||
src: '~/modules/middleware',
|
||||
options: {
|
||||
foo: 'bar'
|
||||
}
|
||||
},
|
||||
['./modules/template', {baz: 'ping'}]
|
||||
],
|
||||
serverMiddleware: [
|
||||
'./modules/middleware/midd2'
|
||||
|
Loading…
Reference in New Issue
Block a user