{{ $reverseStr('NUXT') }}
+ About page
diff --git a/test/fixtures/with-config/middleware/noop.js b/test/fixtures/with-config/middleware/noop.js
new file mode 100644
index 000000000..26f7210f3
--- /dev/null
+++ b/test/fixtures/with-config/middleware/noop.js
@@ -0,0 +1,3 @@
+export default function () {
+ // NOOP!
+}
\ No newline at end of file
diff --git a/test/fixtures/with-config/nuxt.config.js b/test/fixtures/with-config/nuxt.config.js
index d69accdc5..ae0609669 100644
--- a/test/fixtures/with-config/nuxt.config.js
+++ b/test/fixtures/with-config/nuxt.config.js
@@ -1,6 +1,8 @@
module.exports = {
+ srcDir: __dirname,
router: {
base: '/test/',
+ middleware: 'noop',
extendRoutes (routes) {
routes.push({
name: 'about-bis',
@@ -9,7 +11,7 @@ module.exports = {
})
}
},
- cache: true,
+ transition: 'test',
offline: true,
plugins: [
'~plugins/test.js',
diff --git a/test/module.test.js b/test/module.test.js
index 8d388669a..595931600 100755
--- a/test/module.test.js
+++ b/test/module.test.js
@@ -2,7 +2,7 @@ import test from 'ava'
import { resolve } from 'path'
import rp from 'request-promise-native'
-const port = 4000
+const port = 4005
const url = (route) => 'http://localhost:' + port + route
let nuxt = null
diff --git a/test/utils.test.js b/test/utils.test.js
index 25e0cb45d..052db5a90 100644
--- a/test/utils.test.js
+++ b/test/utils.test.js
@@ -32,6 +32,7 @@ test('waitFor', async (t) => {
let s = Date.now()
await utils.waitFor(100)
t.true(Date.now() - s >= 100)
+ await utils.waitFor()
})
test('urlJoin', t => {
diff --git a/test/with-config.test.js b/test/with-config.test.js
index 5d2b3a129..2025554f2 100644
--- a/test/with-config.test.js
+++ b/test/with-config.test.js
@@ -1,6 +1,6 @@
import test from 'ava'
import { resolve } from 'path'
-const port = 4004
+const port = 4006
const url = (route) => 'http://localhost:' + port + route
let nuxt = null