Skip to content

Commit 2597ecc

Browse files
committed
fix lint and tests
1 parent 5b0a0e5 commit 2597ecc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/release/testing/testing-components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Expected: "color: blue"
138138
Result: "color: red"
139139
```
140140

141-
This means that the `name` attribute never updated the template after we update the value in `colorValue`. This happens because we need to mark data as `@tracked` before we can expect it to update templates automatically. You can read more about the tracking system on the [Autotracking In-Depth](../in-depth-topics/autotracking-in-depth/) topic.
141+
This means that the `name` attribute never updated the template after we update the value in `colorValue`. This happens because we need to mark data as `@tracked` before we can expect it to update templates automatically. You can read more about the tracking system on the [Autotracking In-Depth](../../in-depth-topics/autotracking-in-depth/) topic.
142142

143143
Also it's worth noting that currently we can only use `@tracked` in the context of a class field, so we need to create an inline class with the data in the test:
144144

@@ -169,7 +169,7 @@ module('Integration | Component | pretty-color', function (hooks) {
169169
});
170170
```
171171

172-
We also needed to add a call to `await rerender()` for this to work. This function returns a promise that will resolve when all the template updates have finished excecuting. We can await this promise to wait until all templates have updated before continuing to assert against the DOM.
172+
We also needed to add a call to `await rerender()` for this to work. This function returns a promise that will resolve when all the template updates have finished executing. We can await this promise to wait until all templates have updated before continuing to assert against the DOM.
173173

174174
Now that we have data updating correctly in a test, we can start testing other things about this component e.g. we can also test this that the content of its template is being rendered properly:
175175

0 commit comments

Comments
 (0)