@@ -150,7 +150,12 @@ describe('design/react/ComponentDecorator', () => {
150150 describe ( 'when the component is a fragment' , ( ) => {
151151 it ( 'should include the corresponding fragment class' , async ( ) => {
152152 const { element} = await testBed . render ( TestComponent , {
153- designMetadata : { id : 'test-1' , isFragment : true , regionDirection : 'row' , regionId : 'test-region-1' } ,
153+ designMetadata : {
154+ id : 'test-1' ,
155+ isFragment : true ,
156+ regionDirection : 'row' ,
157+ regionId : 'test-region-1' ,
158+ } ,
154159 } ) ;
155160
156161 expect ( element . classList . contains ( 'pd-design__fragment' ) ) . toBe ( true ) ;
@@ -161,7 +166,12 @@ describe('design/react/ComponentDecorator', () => {
161166 describe ( 'when the component is a component' , ( ) => {
162167 it ( 'should include the corresponding component class' , async ( ) => {
163168 const { element} = await testBed . render ( TestComponent , {
164- designMetadata : { id : 'test-1' , isFragment : false , regionDirection : 'row' , regionId : 'test-region-1' } ,
169+ designMetadata : {
170+ id : 'test-1' ,
171+ isFragment : false ,
172+ regionDirection : 'row' ,
173+ regionId : 'test-region-1' ,
174+ } ,
165175 } ) ;
166176
167177 expect ( element . classList . contains ( 'pd-design__fragment' ) ) . toBe ( false ) ;
@@ -182,8 +192,12 @@ describe('design/react/ComponentDecorator', () => {
182192 it ( 'should show the frame' , async ( ) => {
183193 const { element} = await testBed . render ( TestComponent ) ;
184194
185- expect ( element . classList . contains ( 'pd-design__frame--visible' ) ) . toBe ( true ) ;
186- expect ( element . classList . contains ( 'pd-design__decorator--hovered' ) ) . toBe ( true ) ;
195+ expect ( element . classList . contains ( 'pd-design__frame--visible' ) ) . toBe (
196+ true
197+ ) ;
198+ expect (
199+ element . classList . contains ( 'pd-design__decorator--hovered' )
200+ ) . toBe ( true ) ;
187201 } ) ;
188202
189203 it ( 'should notify the host of the hover' , async ( ) => {
@@ -203,9 +217,9 @@ describe('design/react/ComponentDecorator', () => {
203217 hoverOutSpy = jest . fn ( ) ;
204218 testBed . afterRender ( async ( { host, element} ) => {
205219 await waitFor ( ( ) => {
206- expect ( element . classList . contains ( 'pd-design__decorator--hovered' ) ) . toBe (
207- true
208- ) ;
220+ expect (
221+ element . classList . contains ( 'pd-design__decorator--hovered' )
222+ ) . toBe ( true ) ;
209223 } ) ;
210224
211225 host . on ( 'ComponentHoveredOut' , hoverOutSpy ) ;
@@ -229,7 +243,9 @@ describe('design/react/ComponentDecorator', () => {
229243 expect ( element . classList . contains ( 'pd-design__frame--visible' ) ) . toBe (
230244 false
231245 ) ;
232- expect ( element . classList . contains ( 'pd-design__decorator--hovered' ) ) . toBe ( false ) ;
246+ expect (
247+ element . classList . contains ( 'pd-design__decorator--hovered' )
248+ ) . toBe ( false ) ;
233249 } ) ;
234250 } ) ;
235251 } ) ;
@@ -240,8 +256,12 @@ describe('design/react/ComponentDecorator', () => {
240256
241257 element . click ( ) ;
242258
243- expect ( element . classList . contains ( 'pd-design__frame--visible' ) ) . toBe ( true ) ;
244- expect ( element . classList . contains ( 'pd-design__decorator--selected' ) ) . toBe ( true ) ;
259+ expect ( element . classList . contains ( 'pd-design__frame--visible' ) ) . toBe (
260+ true
261+ ) ;
262+ expect (
263+ element . classList . contains ( 'pd-design__decorator--selected' )
264+ ) . toBe ( true ) ;
245265 } ) ;
246266
247267 it ( 'should notify the host of the selection' , async ( ) => {
@@ -272,9 +292,9 @@ describe('design/react/ComponentDecorator', () => {
272292 fireEvent . click ( element ) ;
273293
274294 await waitFor ( ( ) => {
275- expect ( element . classList . contains ( 'pd-design__frame--visible' ) ) . toBe (
276- true
277- ) ;
295+ expect (
296+ element . classList . contains ( 'pd-design__frame--visible' )
297+ ) . toBe ( true ) ;
278298 } ) ;
279299
280300 host . on ( 'ComponentDeleted' , hostSpy ) ;
0 commit comments