From 96fd9654491f9c0cffecf192e6e1adca93a1507a Mon Sep 17 00:00:00 2001 From: Giuseppe Gurgone Date: Sun, 4 Jun 2017 12:31:29 +0200 Subject: [PATCH] Update test --- src/lib/style-transform.js | 4 +++- test/__snapshots__/index.js.snap | 4 ++-- test/__snapshots__/plugins.js.snap | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib/style-transform.js b/src/lib/style-transform.js index 32012c58..679cea8e 100644 --- a/src/lib/style-transform.js +++ b/src/lib/style-transform.js @@ -83,7 +83,9 @@ function transform(prefix, styles, settings = {}) { offset = settings.offset filename = settings.filename stylis.set({ - prefix: typeof settings.vendorPrefix === 'boolean' ? settings.vendorPrefix : true + prefix: typeof settings.vendorPrefix === 'boolean' + ? settings.vendorPrefix + : true }) return stylis(prefix, styles) diff --git a/test/__snapshots__/index.js.snap b/test/__snapshots__/index.js.snap index 9884ce39..2040f3aa 100644 --- a/test/__snapshots__/index.js.snap +++ b/test/__snapshots__/index.js.snap @@ -5,7 +5,7 @@ exports[`generates source maps (babel options) 1`] = ` export default (() =>

test

woot

- <_JSXStyle styleId={188072295} css={\\"p[data-jsx=\\\\\\"188072295\\\\\\"]{color:red}\\\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzb3VyY2UtbWFwcy5qcyIsInNvdXJjZXNDb250ZW50IjpbXX0= */\\\\n/*@ sourceURL=source-maps.js */\\"} /> + <_JSXStyle styleId={188072295} css={\\"p[data-jsx=\\\\\\"188072295\\\\\\"]{color:red}\\\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNvdXJjZS1tYXBzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlnQixBQUNjLFdBQUMiLCJmaWxlIjoic291cmNlLW1hcHMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCAoKSA9PiAoXG4gIDxkaXY+XG4gICAgPHA+dGVzdDwvcD5cbiAgICA8cD53b290PC9wPlxuICAgIDxzdHlsZSBqc3g+eydwIHsgY29sb3I6IHJlZCB9J308L3N0eWxlPlxuICA8L2Rpdj5cbilcbiJdfQ== */\\\\n/*@ sourceURL=source-maps.js */\\"} />
);" `; @@ -14,7 +14,7 @@ exports[`generates source maps (plugin options) 1`] = ` export default (() =>

test

woot

- <_JSXStyle styleId={188072295} css={\\"p[data-jsx=\\\\\\"188072295\\\\\\"]{color:red}\\\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzb3VyY2UtbWFwcy5qcyIsInNvdXJjZXNDb250ZW50IjpbXX0= */\\\\n/*@ sourceURL=source-maps.js */\\"} /> + <_JSXStyle styleId={188072295} css={\\"p[data-jsx=\\\\\\"188072295\\\\\\"]{color:red}\\\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNvdXJjZS1tYXBzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlnQixBQUNjLFdBQUMiLCJmaWxlIjoic291cmNlLW1hcHMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCAoKSA9PiAoXG4gIDxkaXY+XG4gICAgPHA+dGVzdDwvcD5cbiAgICA8cD53b290PC9wPlxuICAgIDxzdHlsZSBqc3g+eydwIHsgY29sb3I6IHJlZCB9J308L3N0eWxlPlxuICA8L2Rpdj5cbilcbiJdfQ== */\\\\n/*@ sourceURL=source-maps.js */\\"} />
);" `; diff --git a/test/__snapshots__/plugins.js.snap b/test/__snapshots__/plugins.js.snap index d71c9954..d99457c3 100644 --- a/test/__snapshots__/plugins.js.snap +++ b/test/__snapshots__/plugins.js.snap @@ -7,7 +7,7 @@ const color = 'red'; export default (() =>

test

- <_JSXStyle styleId={4216192053} css={\`span[data-jsx=\\"4216192053\\"].\${color}[data-jsx=\\"4216192053\\"]{color:\${otherColor}}\`} /> + <_JSXStyle styleId={4216192053} css={\`span.\${color}[data-jsx=\\"4216192053\\"]{color:\${otherColor}}\`} /> <_JSXStyle styleId={styles.__scopedHash} css={styles.__scoped} />
);" `;