Move state tracking out of FailuresView

This commit is contained in:
Steve Gravrock
2025-10-14 21:46:07 -07:00
parent 75347d9ba0
commit 4663280528
5 changed files with 10 additions and 14 deletions

View File

@@ -22,11 +22,6 @@ jasmineRequire.FailuresView = function(j$) {
this.#failureEls.push(this.#makeFailureEl(result, parent));
}
// TODO move this to state builder or something
any() {
return this.#failureEls.length > 0;
}
show() {
const failureNode = this.rootEl.querySelector('.jasmine-failures');