mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-10 07:28:01 -05:00
test(json digits): Try unsetting option in test to get default behavior (#3837)
This commit is contained in:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user