55 * LICENSE file in the root directory of this source tree. 
66 */ 
77
8- const  React  =  require ( " react" ) ; 
8+ const  React  =  require ( ' react' ) 
99
10- const  CompLibrary  =  require ( " ../../core/CompLibrary.js" ) ; 
10+ const  CompLibrary  =  require ( ' ../../core/CompLibrary.js' ) 
1111
12- const  MarkdownBlock  =  CompLibrary . MarkdownBlock ;  /* Used to read markdown */ 
13- const  Container  =  CompLibrary . Container ; 
14- const  GridBlock  =  CompLibrary . GridBlock ; 
12+ const  MarkdownBlock  =  CompLibrary . MarkdownBlock  /* Used to read markdown */ 
13+ const  Container  =  CompLibrary . Container 
14+ const  GridBlock  =  CompLibrary . GridBlock 
1515
1616class  HomeSplash  extends  React . Component  { 
1717 render ( )  { 
18-  const  {  siteConfig,  language =  ""  }  =  this . props ; 
19-  const  {  baseUrl,  docsUrl }  =  siteConfig ; 
20-  const  docsPart  =  `${ docsUrl  ? `${ docsUrl }   : "" } `  ; 
21-  const  langPart  =  `${ language  ? `${ language }   : "" } `  ; 
22-  const  docUrl  =  doc  =>  `${ baseUrl } ${ docsPart } ${ langPart } ${ doc }  ; 
18+  const  {  siteConfig,  language =  ''  }  =  this . props 
19+  const  {  baseUrl,  docsUrl }  =  siteConfig 
20+  const  docsPart  =  `${ docsUrl  ? `${ docsUrl }   : '' } `  
21+  const  langPart  =  `${ language  ? `${ language }   : '' } `  
22+  const  docUrl  =  doc  =>  `${ baseUrl } ${ docsPart } ${ langPart } ${ doc }  
2323
2424 const  SplashContainer  =  props  =>  ( 
2525 < div  className = "homeContainer" > 
2626 < div  className = "homeSplashFade" > 
2727 < div  className = "wrapper homeWrapper" > { props . children } </ div > 
2828 </ div > 
2929 </ div > 
30-  ) ; 
30+  ) 
3131
3232 const  Logo  =  props  =>  ( 
3333 < div  className = "projectLogo" > 
@@ -37,77 +37,77 @@ class HomeSplash extends React.Component {
3737 height = { props . height  ||  128 } 
3838 /> 
3939 </ div > 
40-  ) ; 
40+  ) 
4141
4242 const  ProjectTitle  =  ( )  =>  ( 
4343 < div > 
4444 < h2  className = "projectTitle" > Cypress Testing Library</ h2 > 
4545 < div  className = "projectTaglineWrapper" > 
4646 < p  className = "projectTagline" > 
47-  dom-testing-library queries for end-to-end testing with{ " " } 
47+  dom-testing-library queries for end-to-end testing with{ ' ' } 
4848 < a  href = "https://cypress.io" > 
49-  < img  src = { `${ baseUrl }  }  height = { " 32px" }  /> 
49+  < img  src = { `${ baseUrl }  }  height = { ' 32px' }  /> 
5050 </ a > 
5151 </ p > 
5252 </ div > 
5353 </ div > 
54-  ) ; 
54+  ) 
5555
5656 const  PromoSection  =  props  =>  ( 
5757 < div  className = "section promoSection" > 
5858 < div  className = "promoRow" > 
5959 < div  className = "pluginRowBlock" > { props . children } </ div > 
6060 </ div > 
6161 </ div > 
62-  ) ; 
62+  ) 
6363
6464 const  Button  =  props  =>  ( 
6565 < div  className = "pluginWrapper buttonWrapper" > 
6666 < a  className = "button"  href = { props . href }  target = { props . target } > 
6767 { props . children } 
6868 </ a > 
6969 </ div > 
70-  ) ; 
70+  ) 
7171
7272 return  ( 
7373 < SplashContainer > 
7474 < Logo  img_src = { `${ baseUrl }  }  height = { 128 }  /> 
7575 < div  className = "inner" > 
7676 < ProjectTitle  siteConfig = { siteConfig }  /> 
7777 < PromoSection > 
78-  < Button  href = { docUrl ( " cypress-testing-library/intro" ) } > 
78+  < Button  href = { docUrl ( ' cypress-testing-library/intro' ) } > 
7979 Read the Docs
8080 </ Button > 
8181 </ PromoSection > 
8282 </ div > 
8383 </ SplashContainer > 
84-  ) ; 
84+  ) 
8585 } 
8686} 
8787
8888class  Index  extends  React . Component  { 
8989 render ( )  { 
90-  const  {  config : siteConfig ,  language =  ""  }  =  this . props ; 
91-  const  {  baseUrl }  =  siteConfig ; 
90+  const  {  config : siteConfig ,  language =  ''  }  =  this . props 
91+  const  {  baseUrl }  =  siteConfig 
9292
9393 const  Block  =  props  =>  ( 
9494 < Container 
95-  padding = { [ " bottom" ,   " top" ] } 
95+  padding = { [ ' bottom' ,   ' top' ] } 
9696 id = { props . id } 
9797 background = { props . background } 
9898 > 
9999 < GridBlock 
100-  align = { props . align  ||  " center" } 
101-  imageAlign = { props . imageAlign  ||  " center" } 
100+  align = { props . align  ||  ' center' } 
101+  imageAlign = { props . imageAlign  ||  ' center' } 
102102 contents = { props . children } 
103103 layout = { props . layout } 
104104 /> 
105105 </ Container > 
106-  ) ; 
106+  ) 
107107
108108 const  FeatureCallout  =  ( )  =>  ( 
109-  < Container  className = ""  background = { " light" }  padding = { [ " top" ,   " bottom" ] } > 
110-  < div  style = { {  textAlign : " center" } } > 
109+  < Container  className = ""  background = { ' light' }  padding = { [ ' top' ,   ' bottom' ] } > 
110+  < div  style = { {  textAlign : ' center' } } > 
111111 < p > 
112112 < i > 
113113 The more your tests resemble the way your software is used, < br  /> 
@@ -119,49 +119,49 @@ class Index extends React.Component {
119119 </ MarkdownBlock > 
120120 </ div > 
121121 </ Container > 
122-  ) ; 
122+  ) 
123123
124124 const  TryOut  =  ( )  =>  ( 
125125 < Block  id = "try" > 
126126 { [ 
127127 { 
128128 content : exampleCode , 
129129 image : `${ baseUrl }  , 
130-  imageAlign : " left" , 
131-  title : " Try it Out" 
132-  } 
130+  imageAlign : ' left' , 
131+  title : ' Try it Out' , 
132+  } , 
133133 ] } 
134134 </ Block > 
135-  ) ; 
135+  ) 
136136
137137 const  Features  =  ( )  =>  ( 
138138 < React . Fragment > 
139139 < Block  layout = "twoColumn" > 
140140 { [ 
141141 { 
142142 content :
143-  " Tests only break when your app breaks, not implementation details" , 
143+  ' Tests only break when your app breaks, not implementation details' , 
144144 image : `${ baseUrl }  , 
145-  imageAlign : " top" , 
146-  title : " Write Maintainable Tests" 
145+  imageAlign : ' top' , 
146+  title : ' Write Maintainable Tests' , 
147147 } , 
148148 { 
149-  content : " Interact with your app the same way as your users" , 
149+  content : ' Interact with your app the same way as your users' , 
150150 image : `${ baseUrl }  , 
151-  imageAlign : " top" , 
152-  title : " Develop with Confidence" 
151+  imageAlign : ' top' , 
152+  title : ' Develop with Confidence' , 
153153 } , 
154154 { 
155155 content :
156-  " Built-in selectors use semantic HTML and ARIA roles to help you write inclusive code" , 
156+  ' Built-in selectors use semantic HTML and ARIA roles to help you write inclusive code' , 
157157 image : `${ baseUrl }  , 
158-  imageAlign : " top" , 
159-  title : " Accessible by Default" 
160-  } 
158+  imageAlign : ' top' , 
159+  title : ' Accessible by Default' , 
160+  } , 
161161 ] } 
162162 </ Block > 
163163 </ React . Fragment > 
164-  ) ; 
164+  ) 
165165
166166 return  ( 
167167 < div > 
@@ -171,8 +171,8 @@ class Index extends React.Component {
171171 < Features  /> 
172172 </ div > 
173173 </ div > 
174-  ) ; 
174+  ) 
175175 } 
176176} 
177177
178- module . exports  =  Index ; 
178+ module . exports  =  Index 
0 commit comments