From 0ef1b867d00622dc484624caba30691b8874e17b Mon Sep 17 00:00:00 2001 From: Jason Quense Date: Fri, 15 May 2020 12:18:51 -0400 Subject: [PATCH] test: fix incorrect test --- test/options/__snapshots__/exec.test.js.snap | 5 +---- test/options/exec.test.js | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/options/__snapshots__/exec.test.js.snap b/test/options/__snapshots__/exec.test.js.snap index e9c24e8c..372c9e37 100644 --- a/test/options/__snapshots__/exec.test.js.snap +++ b/test/options/__snapshots__/exec.test.js.snap @@ -2,7 +2,4 @@ exports[`Options Exec - {Boolean} 1`] = `"module.exports = \\"a {\\\\n color: green\\\\n}\\""`; -exports[`Options JSS - {String} 1`] = ` -"module.exports = { a: { color: 'yellow' } } -" -`; +exports[`Options JSS - {String} 1`] = `"module.exports = \\"a {\\\\n color: yellow\\\\n}\\""`; diff --git a/test/options/exec.test.js b/test/options/exec.test.js index 45716078..ab601489 100644 --- a/test/options/exec.test.js +++ b/test/options/exec.test.js @@ -25,6 +25,7 @@ describe('Options', () => { test('JSS - {String}', () => { const config = { loader: { + test: /style\.js$/, options: { parser: 'postcss-js' }