@@ -160,7 +160,11 @@ module('Utils | trackedFunction | rendering', function (hooks) {
160160
161161 setOwner (state , this .owner );
162162
163- await render (<template ><out >{{Doubled state.num }} </out ></template >);
163+ await render (
164+ <template >
165+ <out >{{Doubled state.num }} </out >
166+ </template >
167+ );
164168
165169 assert .dom (' out' ).hasText (' 4' );
166170 });
@@ -213,7 +217,11 @@ module('Utils | trackedFunction | rendering', function (hooks) {
213217
214218 setOwner (state , this .owner );
215219
216- await render (<template ><out >{{state.c }} </out ></template >);
220+ await render (
221+ <template >
222+ <out >{{state.c }} </out >
223+ </template >
224+ );
217225
218226 assert .dom (' out' ).hasText (' 5' );
219227
@@ -233,7 +241,7 @@ module('Utils | trackedFunction | rendering', function (hooks) {
233241 const items = await Promise .resolve ([3 , 4 , 5 ]);
234242
235243 return items ;
236- })
244+ });
237245
238246 get firstItem() {
239247 return this .items .value ?.[0 ];
@@ -242,20 +250,22 @@ module('Utils | trackedFunction | rendering', function (hooks) {
242250 stringArray = trackedFunction (this , async () => {
243251 if (! this .firstItem ) return [];
244252
245- const stringArray = await Promise .resolve (Array .from ({ length: this .firstItem }, () => ' item' ));
253+ const stringArray = await Promise .resolve (
254+ Array .from ({ length: this .firstItem }, () => ' item' )
255+ );
246256
247257 return stringArray ;
248- })
258+ });
249259
250260 get endResult() {
251- return this .stringArray .value ?.join (' ,' ) ?? [].join (' ' )
261+ return this .stringArray .value ?.join (' ,' ) ?? [].join (' ' );
252262 }
253263 }
254264
255265 class TestComponent extends Component {
256266 @tracked testCase? : TestCase ;
257267
258- setTestCase = () => this .testCase = new TestCase ();
268+ setTestCase = () => ( this .testCase = new TestCase () );
259269
260270 <template >
261271 <out >{{this .testCase.endResult }} </out >
@@ -265,10 +275,10 @@ module('Utils | trackedFunction | rendering', function (hooks) {
265275
266276 await render (<template ><TestComponent /></template >);
267277
268- assert .dom (' out' ).doesNotIncludeText (' item' )
278+ assert .dom (' out' ).doesNotIncludeText (' item' );
269279
270- await click (' button' )
280+ await click (' button' );
271281
272- assert .dom (' out' ).hasText (' item,item,item' )
273- })
282+ assert .dom (' out' ).hasText (' item,item,item' );
283+ });
274284});
0 commit comments