diff --git a/test/module.test.js b/test/module.test.js index 31b5bc7cac..c617228e5c 100755 --- a/test/module.test.js +++ b/test/module.test.js @@ -8,6 +8,8 @@ const url = (route) => 'http://localhost:' + port + route let nuxt = null let server = null +const wp = p => /^win/.test(process.platform) ? p.replace(/[\\/]/g, '\\\\') : p + // Init nuxt.js and create server listening on localhost:4000 test.before('Init Nuxt.js', async t => { const Nuxt = require('../') @@ -26,7 +28,7 @@ test('Vendor', async t => { }) test('Plugin', async t => { - t.true(nuxt.options.plugins[0].src.includes('~/.nuxt/basic.reverse.'), 'plugin added to config') + t.true(nuxt.options.plugins[0].src.includes(wp('fixtures/module/.nuxt/basic.reverse.')), 'plugin added to config') const { html } = await nuxt.renderRoute('/') t.true(html.includes('