Skip to content

Commit

Permalink
test(babel-plugin-enhanced-react-style): update snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
henri-hulski committed May 18, 2019
1 parent 1dfb72f commit 67860b3
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`babel-plugin-split-styles Dynamic styles should stay in \`style\`: Dynamic styles should stay in \`style\` 1`] = `
exports[`babel-plugin-enhanced-react-style Dynamic styles should stay in \`style\`: Dynamic styles should stay in \`style\` 1`] = `
"
<div style={{color: a ? \\"red\\" : \\"green\\"}} />
Expand All @@ -12,7 +12,7 @@ exports[`babel-plugin-split-styles Dynamic styles should stay in \`style\`: Dyna
"
`;

exports[`babel-plugin-split-styles Extract static from dynamic: Extract static from dynamic 1`] = `
exports[`babel-plugin-enhanced-react-style Extract static from dynamic: Extract static from dynamic 1`] = `
"
<div style={{background: \\"blue\\", color: a ? \\"red\\" : \\"green\\"}} />
Expand All @@ -26,7 +26,7 @@ exports[`babel-plugin-split-styles Extract static from dynamic: Extract static f
"
`;

exports[`babel-plugin-split-styles Ignore bound jsx elements: Ignore bound jsx elements 1`] = `
exports[`babel-plugin-enhanced-react-style Ignore bound jsx elements: Ignore bound jsx elements 1`] = `
"
const div = () => {}; <div style={{some: \\"other\\", stuff}} />
Expand All @@ -41,7 +41,7 @@ const div = () => {};
"
`;

exports[`babel-plugin-split-styles Ignore non identifier as element name: Ignore non identifier as element name 1`] = `
exports[`babel-plugin-enhanced-react-style Ignore non identifier as element name: Ignore non identifier as element name 1`] = `
"
<animated.div style={{some: \\"other\\", stuff}} />
Expand All @@ -54,7 +54,7 @@ exports[`babel-plugin-split-styles Ignore non identifier as element name: Ignore
"
`;

exports[`babel-plugin-split-styles Only static css: Only static css 1`] = `
exports[`babel-plugin-enhanced-react-style Only static css: Only static css 1`] = `
"
<div style={{color: \\"green\\"}} />
Expand All @@ -66,7 +66,7 @@ exports[`babel-plugin-split-styles Only static css: Only static css 1`] = `
"
`;

exports[`babel-plugin-split-styles Should bail if \`css\` property exists: Should bail if \`css\` property exists 1`] = `
exports[`babel-plugin-enhanced-react-style Should bail if \`css\` property exists: Should bail if \`css\` property exists 1`] = `
"
<div css={{}} style={{background: \\"blue\\"}} />
Expand All @@ -78,7 +78,7 @@ exports[`babel-plugin-split-styles Should bail if \`css\` property exists: Shoul
"
`;

exports[`babel-plugin-split-styles Should bail on non object expression: Should bail on non object expression 1`] = `
exports[`babel-plugin-enhanced-react-style Should bail on non object expression: Should bail on non object expression 1`] = `
"
<div style={a} />
Expand All @@ -88,7 +88,7 @@ exports[`babel-plugin-split-styles Should bail on non object expression: Should
"
`;

exports[`babel-plugin-split-styles Should work with boolean attributes: Should work with boolean attributes 1`] = `
exports[`babel-plugin-enhanced-react-style Should work with boolean attributes: Should work with boolean attributes 1`] = `
"
<div allowFullScreen />
Expand All @@ -98,7 +98,7 @@ exports[`babel-plugin-split-styles Should work with boolean attributes: Should w
"
`;

exports[`babel-plugin-split-styles Should work with nested object: Should work with nested object 1`] = `
exports[`babel-plugin-enhanced-react-style Should work with nested object: Should work with nested object 1`] = `
"
<div style={{color: \\"green\\", \\"&\\": { \\":hover\\": { color: \\"blue\\"}}}} />
Expand Down

0 comments on commit 67860b3

Please sign in to comment.