Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppeg committed Jun 11, 2017
1 parent 3ad810e commit ccddb77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/lib/style-transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/plugins.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const color = 'red';
export default (() => <div data-jsx={4216192053} data-jsx-ext={styles.__scopedHash}>
<p data-jsx={4216192053} data-jsx-ext={styles.__scopedHash}>test</p>
<_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} />
</div>);"
`;

0 comments on commit ccddb77

Please sign in to comment.