test(json digits): Try unsetting option in test to get default behavior (#3837)

This commit is contained in:
Barret Schloerke
2023-06-09 16:30:02 -04:00
committed by GitHub
parent e7b830755a
commit 8542f5d017

View File

@@ -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", {