Skip to content

Commit 5525e17

Browse files
committed
test: cant reference JSON.stringify
1 parent 14bcb5d commit 5525e17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test-app/tests/utils/function/rendering-test.gts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ module('Utils | trackedFunction | rendering', function (hooks) {
264264
});
265265

266266
get endResult() {
267-
return this.stringArray.value;
267+
return this.stringArray.value?.join(',') ?? '';
268268
}
269269
}
270270

@@ -275,7 +275,7 @@ module('Utils | trackedFunction | rendering', function (hooks) {
275275

276276
<template>
277277
<div {{logText this.testCase.endResult}} />
278-
<out>{{JSON.stringify this.testCase.endResult}}</out>
278+
<out>{{this.testCase.endResult}}</out>
279279
<button type="button" {{on "click" this.setTestCase}}></button>
280280
</template>
281281
}
@@ -286,6 +286,6 @@ module('Utils | trackedFunction | rendering', function (hooks) {
286286

287287
await click('button');
288288

289-
assert.dom('out').hasText(JSON.stringify(['item', 'item', 'item']))
289+
assert.dom('out').hasText('item,item,item');
290290
});
291291
});

0 commit comments

Comments
 (0)