test(module): code coverage

This commit is contained in:
Pooya Parsa 2017-05-31 19:28:36 +04:30
parent 44c6a25247
commit 30b5387f95
2 changed files with 8 additions and 3 deletions

View File

@ -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]

View File

@ -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'