Skip to content

Commit

Permalink
test: cant reference JSON.stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
Techn1x committed Sep 17, 2024
1 parent 14bcb5d commit 5525e17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test-app/tests/utils/function/rendering-test.gts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ module('Utils | trackedFunction | rendering', function (hooks) {
});

get endResult() {
return this.stringArray.value;
return this.stringArray.value?.join(',') ?? '';
}
}

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

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

await click('button');

assert.dom('out').hasText(JSON.stringify(['item', 'item', 'item']))
assert.dom('out').hasText('item,item,item');
});
});

0 comments on commit 5525e17

Please sign in to comment.