1- import { expect } from " @open-wc/testing" ;
1+ import { expect } from ' @open-wc/testing' ;
22
3- import { isEdit , Update } from " ./editv1.js" ;
4- import { Insert , Remove , SetAttributes , SetTextContent } from " ./editv2.js" ;
3+ import { isEdit , Update } from ' ./editv1.js' ;
4+ import { Insert , Remove , SetAttributes , SetTextContent } from ' ./editv2.js' ;
55
66const element = new DOMParser ( ) . parseFromString (
7- " <SCL />" ,
8- " application/xml" ,
7+ ' <SCL />' ,
8+ ' application/xml' ,
99) ! . documentElement ;
1010
1111const update : Update = { element, attributes : { } } ;
@@ -16,31 +16,31 @@ const setAttributes: SetAttributes = {
1616 attributes : { } ,
1717 attributesNS : { } ,
1818} ;
19- const setTextContent : SetTextContent = { element, textContent : "" } ;
19+ const setTextContent : SetTextContent = { element, textContent : '' } ;
2020
21- describe ( " type guard functions for editv1" , ( ) => {
22- it ( " returns false on invalid Edit type" , ( ) =>
23- expect ( " invalid edit" ) . to . not . satisfy ( isEdit ) ) ;
21+ describe ( ' type guard functions for editv1' , ( ) => {
22+ it ( ' returns false on invalid Edit type' , ( ) =>
23+ expect ( ' invalid edit' ) . to . not . satisfy ( isEdit ) ) ;
2424
25- it ( " returns false on Update" , ( ) => expect ( update ) . to . satisfy ( isEdit ) ) ;
25+ it ( ' returns false on Update' , ( ) => expect ( update ) . to . satisfy ( isEdit ) ) ;
2626
27- it ( " returns true for Insert" , ( ) => expect ( insert ) . to . satisfy ( isEdit ) ) ;
27+ it ( ' returns true for Insert' , ( ) => expect ( insert ) . to . satisfy ( isEdit ) ) ;
2828
29- it ( " returns true for Remove" , ( ) => expect ( remove ) . to . satisfy ( isEdit ) ) ;
29+ it ( ' returns true for Remove' , ( ) => expect ( remove ) . to . satisfy ( isEdit ) ) ;
3030
31- it ( " returns false for SetAttributes" , ( ) =>
31+ it ( ' returns false for SetAttributes' , ( ) =>
3232 expect ( setAttributes ) . to . not . satisfy ( isEdit ) ) ;
3333
34- it ( " returns true for SetTextContent" , ( ) =>
34+ it ( ' returns true for SetTextContent' , ( ) =>
3535 expect ( setTextContent ) . to . not . satisfy ( isEdit ) ) ;
3636
37- it ( " returns false on mixed edit and editV2 array" , ( ) =>
37+ it ( ' returns false on mixed edit and editV2 array' , ( ) =>
3838 expect ( [ update , setAttributes ] ) . to . not . satisfy ( isEdit ) ) ;
3939
40- it ( " returns true on edit array" , ( ) =>
40+ it ( ' returns true on edit array' , ( ) =>
4141 expect ( [ update , remove , insert ] ) . to . satisfy ( isEdit ) ) ;
4242
43- it ( " returns false on editV2 array" , ( ) =>
43+ it ( ' returns false on editV2 array' , ( ) =>
4444 expect ( [ setAttributes , remove , insert , setTextContent ] ) . to . not . satisfy (
4545 isEdit ,
4646 ) ) ;
0 commit comments