From d161a5785cf6574ee4b307360eacc6a206619dba Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 31 May 2017 17:36:23 +0430 Subject: [PATCH] test: fix appveyor part 2! --- test/module.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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('

TXUN

'), 'plugin works') })