Commit 3a94017d authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Minor text update

parent be348ffe
...@@ -146,7 +146,7 @@ it('does not display a dropdown if no metricTypes exist', () => { ...@@ -146,7 +146,7 @@ it('does not display a dropdown if no metricTypes exist', () => {
}); });
``` ```
Keep an eye out for these kinds of tests, as they just make updating logic more fragile and tedious than it needs to be. This is also true for other libraries. A rule of thumb here is: if you are checking a `wrapper.vm` property, you should probably stop and rethink the test to check the rendered template instead. Keep an eye out for these kinds of tests, as they just make updating logic more fragile and tedious than it needs to be. This is also true for other libraries. A suggestion here is: if you are checking a `wrapper.vm` property, you should probably stop and rethink the test to check the rendered template instead.
Some more examples can be found in the [Frontend unit tests section](testing_levels.md#frontend-unit-tests) Some more examples can be found in the [Frontend unit tests section](testing_levels.md#frontend-unit-tests)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment