jsfmt.spec.js.snap 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`styled-components.js 1`] = `
  3. const ListItem = styled.li\`\`;
  4. const ListItem = styled.li\` \`;
  5. const Dropdown = styled.div\`position: relative;\`
  6. const Button = styled.button\`
  7. color: palevioletred ;
  8. font-size : 1em ;
  9. \`;
  10. const TomatoButton = Button.extend\`
  11. color : tomato ;
  12. border-color : tomato
  13. ;
  14. \`;
  15. Button.extend.attr({})\`
  16. border-color : black;
  17. \`
  18. styled(ExistingComponent)\`
  19. color : papayawhip ; background-color: firebrick\`;
  20. styled.button.attr({})\`
  21. border : rebeccapurple\`;
  22. styled(ExistingComponent).attr({})\`
  23. border : rebeccapurple\`;
  24. styled.div\`
  25. color: \${props => props.theme.colors.paragraph};
  26. /* prettier-ignore */
  27. \${props => props.small ? 'font-size: 0.8em;' : ''};
  28. \`
  29. styled.div\`
  30. color: \${props => props.theme.colors.paragraph};
  31. /* prettier-ignore */
  32. \${props => props.small ? 'font-size: 0.8em;' : ''}
  33. \`
  34. styled.div\`
  35. /* prettier-ignore */
  36. color: \${props => props.theme.colors.paragraph};
  37. \${props => props.small ? 'font-size: 0.8em;' : ''};
  38. \`
  39. styled.div\`
  40. color: \${props => props.theme.colors.paragraph};
  41. /* prettier-ignore */
  42. \${props => props.small ? 'font-size: 0.8em;' : ''};
  43. /* prettier-ignore */
  44. \${props => props.red ? 'color: red;' : ''};
  45. \`
  46. styled.div\`
  47. /* prettier-ignore */
  48. color: \${props => props.theme.colors.paragraph};
  49. /* prettier-ignore */
  50. \${props => props.small ? 'font-size: 0.8em;' : ''};
  51. /* prettier-ignore */
  52. \${props => props.red ? 'color: red;' : ''};
  53. /* prettier-ignore */
  54. \`
  55. styled.div\`
  56. \${sanitize} \${fonts}
  57. html {
  58. margin: 0;
  59. }
  60. \`
  61. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  62. const ListItem = styled.li\`\`;
  63. const ListItem = styled.li\`\`;
  64. const Dropdown = styled.div\`
  65. position: relative;
  66. \`;
  67. const Button = styled.button\`
  68. color: palevioletred;
  69. font-size: 1em;
  70. \`;
  71. const TomatoButton = Button.extend\`
  72. color: tomato;
  73. border-color: tomato;
  74. \`;
  75. Button.extend.attr({})\`
  76. border-color: black;
  77. \`;
  78. styled(ExistingComponent)\`
  79. color: papayawhip;
  80. background-color: firebrick;
  81. \`;
  82. styled.button.attr({})\`
  83. border: rebeccapurple;
  84. \`;
  85. styled(ExistingComponent).attr({})\`
  86. border: rebeccapurple;
  87. \`;
  88. styled.div\`
  89. color: \${props => props.theme.colors.paragraph};
  90. /* prettier-ignore */
  91. \${props => (props.small ? "font-size: 0.8em;" : "")};
  92. \`;
  93. styled.div\`
  94. color: \${props => props.theme.colors.paragraph};
  95. /* prettier-ignore */
  96. \${props => (props.small ? "font-size: 0.8em;" : "")}
  97. \`;
  98. styled.div\`
  99. /* prettier-ignore */
  100. color: \${props => props.theme.colors.paragraph};
  101. \${props => (props.small ? "font-size: 0.8em;" : "")};
  102. \`;
  103. styled.div\`
  104. color: \${props => props.theme.colors.paragraph};
  105. /* prettier-ignore */
  106. \${props => (props.small ? "font-size: 0.8em;" : "")};
  107. /* prettier-ignore */
  108. \${props => (props.red ? "color: red;" : "")};
  109. \`;
  110. styled.div\`
  111. /* prettier-ignore */
  112. color: \${props => props.theme.colors.paragraph};
  113. /* prettier-ignore */
  114. \${props => (props.small ? "font-size: 0.8em;" : "")};
  115. /* prettier-ignore */
  116. \${props => (props.red ? "color: red;" : "")};
  117. /* prettier-ignore */
  118. \`;
  119. styled.div\`
  120. \${sanitize} \${fonts}
  121. html {
  122. margin: 0;
  123. }
  124. \`;
  125. `;