diff --git a/test/e2e/test.js b/test/e2e/test.js index adc1b6bae8..4cef9c6f0d 100644 --- a/test/e2e/test.js +++ b/test/e2e/test.js @@ -34,9 +34,6 @@ function monkeyPatchInquirer (answers) { } describe('vue-cli', () => { - /* eslint-disable quotes */ - const escapedAuthor = "John \"The Tester\" Doe " - const escapedAnswers = { name: 'vue-cli-test', author: 'John "The Tester" Doe ', @@ -130,7 +127,7 @@ describe('vue-cli', () => { const pkg = fs.readFileSync(`${MOCK_TEMPLATE_BUILD_PATH}/package.json`, 'utf8') try { var validData = JSON.parse(pkg) - expect(validData.author).to.equal(escapedAuthor) + expect(validData.author).to.equal(escapedAnswers.author) done() } catch (err) { done(err)