test: keep Radio invariants independent of formatting

This commit is contained in:
Sameh Khamis committed 2026-09-12 23:25:09 -07:00
1 parent bd6cc5abe8
commit 02e90ca698
5 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -192,7 +192,7 @@ test('only the expanded Radio Enable gesture requests the contained post-enable
radioBindings.indexOf("this.listen(this._radioFilter, 'change'"),
);
assert.match(radioControls, /revealAfterEnable = enabling && trigger === this\._radioEnableBtn/);
assert.match(radioControls, /if \(revealAfterEnable\) await this\._revealRadioControlsAfterExplicitEnable\(trigger\)/);
assert.match(radioControls, /if \(revealAfterEnable\)\s*await this\._revealRadioControlsAfterExplicitEnable\(trigger\)/);
assert.equal((radioBindings.match(/_revealRadioControlsAfterExplicitEnable\(trigger\)/g) || []).length, 1);
assert.match(radioControlsSource, /async _revealRadioControlsAfterExplicitEnable\(trigger\)/);
});