From 8542f5d01726c88b8200eae2b4487b61e6e174b7 Mon Sep 17 00:00:00 2001 From: Barret Schloerke Date: Fri, 9 Jun 2023 16:30:02 -0400 Subject: [PATCH] test(json digits): Try unsetting option in test to get default behavior (#3837) --- tests/testthat/test-utils.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test-utils.R b/tests/testthat/test-utils.R index 97a95be22..df462bf1d 100644 --- a/tests/testthat/test-utils.R +++ b/tests/testthat/test-utils.R @@ -272,10 +272,10 @@ test_that("quoToFunction handles nested quosures", { test_that("toJSON can set digits using options - default", { - # withr::local_options(list()) + withr::local_options(list(shiny.json.digits = NULL)) expect_equal( as.character(toJSON(pi)), - "[3.14159265358979]" + "[3.141592653589793]" ) }) test_that("toJSON can set digits using options - number", {