3 ms·
I know the main thrust of the post is building a complex visual test harness, but: .ellipsis { text-overflow: ellipsis; white-space: nowrap;
by egypturnash 9y ago
I know the main thrust of the post is building a complex visual test harness, but:
.ellipsis {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
> In both my application code and my unit test, I’ve mistakenly written .ellipses. Unfortunately, all the unit tests pass.
I kinda feel like a graceful way to handle this particular error is to acknowledge that "ellipsis" is a word that is super easy to misspell, and either declare this class to apply to both the proper word and the misspelling that's going to constantly get scattered throughout the codebase, or to pick another name entirely such as ".truncated" or, I dunno, ".elided" maybe?
Naming stuff is hard.
- wodenokoto 9y agoShouldn't the unit test highlight unused css properties, as well as elements linked to non-existent css properties? I feel like such a mistake ought to be caught by a unit test.