@@ -55,13 +55,13 @@ module('Integration | Modifier | did-resize', function (hooks) {
5555 assert . strictEqual (
5656 Object . keys ( options ) . length ,
5757 0 ,
58- 'empty object passed as default options'
58+ 'empty object passed as default options' ,
5959 ) ;
6060 } ) ;
6161
6262 test ( 'modifier triggers handler when ResizeObserver fires callback' , async function ( assert ) {
6363 await render (
64- hbs `<div id="test-element" {{did-resize this.resizeStub}}></div>`
64+ hbs `<div id="test-element" {{did-resize this.resizeStub}}></div>` ,
6565 ) ;
6666 let entry = { target : find ( '#test-element' ) } ;
6767 let fakeObserver = { observe : { } } ;
@@ -70,7 +70,7 @@ module('Integration | Modifier | did-resize', function (hooks) {
7070
7171 assert . ok (
7272 this . resizeStub . calledOnceWith ( entry , fakeObserver ) ,
73- 'handler fired with correct parameters'
73+ 'handler fired with correct parameters' ,
7474 ) ;
7575 } ) ;
7676
@@ -114,13 +114,13 @@ module('Integration | Modifier | did-resize', function (hooks) {
114114 await render (
115115 hbs `<div id="test-element1" {{did-resize this.resizeStub}}></div>
116116<div id="test-element2" {{did-resize this.resizeStub2}}></div>
117- <div id="test-element3" {{did-resize this.resizeStub3}}></div>`
117+ <div id="test-element3" {{did-resize this.resizeStub3}}></div>` ,
118118 ) ;
119119
120120 let entries = [ '#test-element1' , '#test-element2' , '#test-element3' ] . map (
121121 ( elementId ) => {
122122 return { target : find ( elementId ) } ;
123- }
123+ } ,
124124 ) ;
125125 let fakeObserver = { observe : { } } ;
126126
@@ -130,47 +130,47 @@ module('Integration | Modifier | did-resize', function (hooks) {
130130 assert . ok ( this . resizeStub . calledOnce , 'First handler was called only once' ) ;
131131 assert . ok (
132132 this . resizeStub2 . calledOnce ,
133- 'Second handler was called only once'
133+ 'Second handler was called only once' ,
134134 ) ;
135135 assert . ok (
136136 this . resizeStub3 . calledOnce ,
137- 'Third handler was called only once'
137+ 'Third handler was called only once' ,
138138 ) ;
139139
140140 // trigger resize only on the first element
141141 resizeCallback ( [ entries [ 0 ] ] , fakeObserver ) ;
142142 assert . ok (
143143 this . resizeStub . calledTwice ,
144- 'First handler was called a second time'
144+ 'First handler was called a second time' ,
145145 ) ;
146146 assert . notOk (
147147 this . resizeStub2 . calledTwice ,
148- 'Second handler was not called a second time'
148+ 'Second handler was not called a second time' ,
149149 ) ;
150150 assert . notOk (
151151 this . resizeStub3 . calledTwice ,
152- 'Third handler was not called a second time'
152+ 'Third handler was not called a second time' ,
153153 ) ;
154154 } ) ;
155155
156156 test ( 'element gets unobserved before removing from the DOM' , async function ( assert ) {
157157 await render (
158- hbs `<div id='test-element' {{did-resize this.resizeStub}}></div>`
158+ hbs `<div id='test-element' {{did-resize this.resizeStub}}></div>` ,
159159 ) ;
160160 let element = find ( '#test-element' ) ;
161161 await clearRender ( ) ;
162162
163163 assert . ok (
164164 unobserveStub . calledOnceWith ( element ) ,
165- 'unobserve is called with the HTMLElement of the modifier'
165+ 'unobserve is called with the HTMLElement of the modifier' ,
166166 ) ;
167167
168168 let entry = { target : element } ;
169169 let fakeObserver = { observe : { } } ;
170170 resizeCallback ( [ entry ] , fakeObserver ) ;
171171 assert . notOk (
172172 this . resizeStub . called ,
173- 'handler function is not called after element is removed from the DOM'
173+ 'handler function is not called after element is removed from the DOM' ,
174174 ) ;
175175 } ) ;
176176} ) ;
0 commit comments