Add component tests for ConfigToggle and ToggleFocus
The following discussion from !52155 (merged) should be addressed:
-
@markrian started a discussion: (+2 comments) I've created a new file here, but it's mostly lifted straight from the
.js
file of the same name, with minor tweaks, e.g., defining props instead of relying on lexical references/closures.I've not found any existing unit/component tests for these
.js
files, though I have verified each of these new components works in situ locally.I'm not particularly interested in writing new tests for these new files (
🙈 ), so if reviewers think these do indeed need to be written, I'd prefer to// eslint-disable @gitlab/no-runtime-template-compiler
the original files instead.
These two components were extracted from JS entry points in !52155 (merged). They weren't previously covered much by tests. Now that they're Vue SFCs, it's easier to test them, and they should be tested.