mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
[tests] use promise
This commit is contained in:
parent
632a94a9c6
commit
58842f3c03
5
test/fixtures/module/modules/basic/index.js
vendored
5
test/fixtures/module/modules/basic/index.js
vendored
@ -1,6 +1,7 @@
|
||||
const path = require('path')
|
||||
|
||||
module.exports = async function basicModule (options) {
|
||||
module.exports = function basicModule (options) {
|
||||
return new Promise((resolve,reject) => {
|
||||
// Add simple vendor
|
||||
this.addVendor('lodash')
|
||||
|
||||
@ -14,4 +15,6 @@ module.exports = async function basicModule (options) {
|
||||
res.end('It works!')
|
||||
}
|
||||
})
|
||||
resolve()
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user