Skip to content

Commit

Permalink
chore: simplify boolean logic as suggested by @chlebowa
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhav committed Mar 11, 2024
1 parent 18801d4 commit a8e934f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/TealAppDriver.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ TealAppDriver <- R6::R6Class( # nolint
#' @description
#' Check if the app has validation errors. This checks for global shiny validation errors.
expect_validation_error = function() {
testthat::expect_true(
!is.null(self$get_html(".shiny-output-error-validation")),
testthat::expect_false(
is.null(self$get_html(".shiny-output-error-validation")),
info = "Validation error is not observed"
)
},
Expand Down

0 comments on commit a8e934f

Please sign in to comment.