Skip to content

Commit

Permalink
Update test-mod_review_forms.R
Browse files Browse the repository at this point in the history
  • Loading branch information
jthompson-arcus committed Dec 3, 2024
1 parent 96e795e commit f4a71ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/testthat/test-mod_review_forms.R
Original file line number Diff line number Diff line change
Expand Up @@ -496,10 +496,15 @@ describe(
testServer(
mod_review_forms_server, args = testargs, {
ns <- session$ns

session$userData$review_records <- reactiveValues()
session$userData$update_checkboxes <- reactiveValues()

session$setInputs(form_reviewed = NULL)
db_before_saving <- db_get_table(db_path)
session$setInputs(form_reviewed = TRUE, save_review = 1)
db_after_saving <- db_get_table(db_path)

expect_true(review_save_error())
expect_equal(r$review_data, rev_data)
expect_equal(db_after_saving, db_before_saving)
Expand Down

0 comments on commit f4a71ad

Please sign in to comment.