@@ -132,7 +132,7 @@ describe('mutation', () => {
132132 } ) ;
133133
134134 it ( 'add root first' , async ( ) => {
135- await setup ( 'mutation.html' ) ;
135+ await setup ( 'mutation.html' ) ;
136136 await page . evaluate ( ( ) => {
137137 const d1 = document . createElement ( 'div' ) ;
138138 d1 . id = 'd1' ;
@@ -279,7 +279,7 @@ describe('mutation', () => {
279279
280280 it ( 'siblings added in idleCallback' , async ( ) => {
281281 await setup ( 'mutation.html' ) ;
282- await page . evaluate ( ( ) => {
282+ await page . evaluate ( ( ) => {
283283 document . body . childNodes . forEach ( ( cn ) => document . body . removeChild ( cn ) ) ; // clear out text nodes created by server
284284 document . body . prepend ( document . createElement ( 'div' ) ) ;
285285 requestAnimationFrame ( ( ) => {
@@ -294,16 +294,16 @@ describe('mutation', () => {
294294 ) ;
295295 await assertSnapshot ( mutations , true ) ;
296296 } ) ;
297-
297+
298298 it ( 'ignored firstchild comment already there' , async ( ) => {
299299 await setup ( 'mutation-already-there.html' ) ;
300300 await page . evaluate ( ( ) => {
301301 const siblingDiv = document . createElement ( 'div' ) ;
302302 document . getElementById ( 'with-comment' ) . append ( siblingDiv ) ;
303303 } ) ;
304304 await waitForRAF ( page ) ;
305- const mutations = events . filter (
306- ( e ) => [ EventType . IncrementalSnapshot , EventType . FullSnapshot ] . includes ( e . type ) ,
305+ const mutations = events . filter ( ( e ) =>
306+ [ EventType . IncrementalSnapshot , EventType . FullSnapshot ] . includes ( e . type ) ,
307307 ) ;
308308 await assertSnapshot ( mutations , true ) ;
309309 } ) ;
@@ -313,12 +313,14 @@ describe('mutation', () => {
313313 await page . evaluate ( ( ) => {
314314 const siblingDiv = document . createElement ( 'div' ) ;
315315 const siblingDiv2 = document . createElement ( 'div' ) ;
316- document . getElementById ( 'with-comment' ) . insertAdjacentElement ( 'afterbegin' , siblingDiv ) ;
316+ document
317+ . getElementById ( 'with-comment' )
318+ . insertAdjacentElement ( 'afterbegin' , siblingDiv ) ;
317319 document . getElementById ( 'with-comment' ) . append ( siblingDiv2 ) ;
318320 } ) ;
319321 await waitForRAF ( page ) ;
320- const mutations = events . filter (
321- ( e ) => [ EventType . IncrementalSnapshot , EventType . FullSnapshot ] . includes ( e . type )
322+ const mutations = events . filter ( ( e ) =>
323+ [ EventType . IncrementalSnapshot , EventType . FullSnapshot ] . includes ( e . type ) ,
322324 ) ;
323325 await assertSnapshot ( mutations , true ) ;
324326 } ) ;
@@ -327,11 +329,13 @@ describe('mutation', () => {
327329 await setup ( 'mutation-already-there.html' ) ;
328330 await page . evaluate ( ( ) => {
329331 const siblingDiv = document . createElement ( 'div' ) ;
330- document . getElementById ( 'with-comment' ) . insertAdjacentElement ( 'afterbegin' , siblingDiv ) ;
332+ document
333+ . getElementById ( 'with-comment' )
334+ . insertAdjacentElement ( 'afterbegin' , siblingDiv ) ;
331335 } ) ;
332336 await waitForRAF ( page ) ;
333- const mutations = events . filter (
334- ( e ) => [ EventType . IncrementalSnapshot , EventType . FullSnapshot ] . includes ( e . type )
337+ const mutations = events . filter ( ( e ) =>
338+ [ EventType . IncrementalSnapshot , EventType . FullSnapshot ] . includes ( e . type ) ,
335339 ) ;
336340 await assertSnapshot ( mutations , true ) ;
337341 } ) ;
@@ -347,8 +351,8 @@ describe('mutation', () => {
347351 d1 . append ( siblingDiv ) ;
348352 } ) ;
349353 await waitForRAF ( page ) ;
350- const mutations = events . filter (
351- ( e ) => [ EventType . IncrementalSnapshot , EventType . FullSnapshot ] . includes ( e . type )
354+ const mutations = events . filter ( ( e ) =>
355+ [ EventType . IncrementalSnapshot , EventType . FullSnapshot ] . includes ( e . type ) ,
352356 ) ;
353357 await assertSnapshot ( mutations , true ) ;
354358 } ) ;
@@ -366,8 +370,8 @@ describe('mutation', () => {
366370 d1 . append ( siblingDiv2 ) ;
367371 } ) ;
368372 await waitForRAF ( page ) ;
369- const mutations = events . filter (
370- ( e ) => [ EventType . IncrementalSnapshot , EventType . FullSnapshot ] . includes ( e . type )
373+ const mutations = events . filter ( ( e ) =>
374+ [ EventType . IncrementalSnapshot , EventType . FullSnapshot ] . includes ( e . type ) ,
371375 ) ;
372376 await assertSnapshot ( mutations , true ) ;
373377 } ) ;
@@ -383,10 +387,9 @@ describe('mutation', () => {
383387 d1 . insertAdjacentElement ( 'afterbegin' , siblingDiv ) ;
384388 } ) ;
385389 await waitForRAF ( page ) ;
386- const mutations = events . filter (
387- ( e ) => [ EventType . IncrementalSnapshot , EventType . FullSnapshot ] . includes ( e . type )
390+ const mutations = events . filter ( ( e ) =>
391+ [ EventType . IncrementalSnapshot , EventType . FullSnapshot ] . includes ( e . type ) ,
388392 ) ;
389393 await assertSnapshot ( mutations , true ) ;
390394 } ) ;
391-
392395} ) ;
0 commit comments