@@ -117,10 +117,10 @@ describe('undom', () => {
117117 expect ( el . attributes ) . to . eql ( [ ] ) ;
118118
119119 el . setAttribute ( 'foo' , 'bar' ) ;
120- expect ( el . attributes , 'create' ) . to . eql ( [ { name :'foo' , value :'bar' , ns :null } ] ) ;
120+ expect ( el . attributes , 'create' ) . to . eql ( [ { name : 'foo' , value : 'bar' , ns : null } ] ) ;
121121
122122 el . setAttribute ( 'foo' , 'baz' ) ;
123- expect ( el . attributes , 'update' ) . to . eql ( [ { name :'foo' , value :'baz' , ns :null } ] ) ;
123+ expect ( el . attributes , 'update' ) . to . eql ( [ { name : 'foo' , value : 'baz' , ns : null } ] ) ;
124124 } ) ;
125125
126126 it ( 'should stringify values' , ( ) => {
@@ -215,7 +215,7 @@ describe('undom', () => {
215215
216216 describe ( '#dispatchEvent()' , ( ) => {
217217 it ( 'should invoke matched listener' , ( ) => {
218- let event = { type :'foo' , cancelable :true , bubbles :true } ;
218+ let event = { type : 'foo' , cancelable : true , bubbles : true } ;
219219 let el = document . createElement ( 'div' ) ;
220220 let fn = spy ( ) ;
221221 let fn2 = spy ( ) ;
@@ -228,7 +228,7 @@ describe('undom', () => {
228228 } ) ;
229229
230230 it ( 'should invoke multiple listeners' , ( ) => {
231- let event = { type :'foo' , cancelable :true , bubbles :true } ;
231+ let event = { type : 'foo' , cancelable : true , bubbles : true } ;
232232 let el = document . createElement ( 'div' ) ;
233233 let fn = spy ( ) ;
234234 el . addEventListener ( 'foo' , fn ) ;
@@ -240,7 +240,7 @@ describe('undom', () => {
240240 } ) ;
241241
242242 it ( 'should bubble if enabled' , ( ) => {
243- let event = new document . defaultView . Event ( 'foo' , { cancelable :true , bubbles :true } ) ;
243+ let event = new document . defaultView . Event ( 'foo' , { cancelable : true , bubbles : true } ) ;
244244 let child = document . createElement ( 'div' ) ;
245245 let parent = document . createElement ( 'div' ) ;
246246 parent . appendChild ( child ) ;
@@ -252,13 +252,13 @@ describe('undom', () => {
252252 expect ( child . fn ) . to . have . been . calledOnce ;
253253 expect ( parent . fn ) . to . have . been . calledOnce ;
254254
255- child . fn . reset ( ) ;
256- parent . fn . reset ( ) ;
255+ child . fn . resetHistory ( ) ;
256+ parent . fn . resetHistory ( ) ;
257257 parent . dispatchEvent ( event ) ;
258258 expect ( child . fn ) . not . to . have . been . called ;
259259
260- child . fn . reset ( ) ;
261- parent . fn . reset ( ) ;
260+ child . fn . resetHistory ( ) ;
261+ parent . fn . resetHistory ( ) ;
262262 event . bubbles = false ;
263263 child . addEventListener ( 'foo' , e => e . _stop = true ) ;
264264 child . dispatchEvent ( event ) ;
0 commit comments