We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bbdd09 commit e5a56fdCopy full SHA for e5a56fd
tests/testthat/test-ggplot-lines.R
@@ -51,7 +51,7 @@ test_that("Milliseconds are preserved with dynamic ticks", {
51
j <- plotly_json(p, jsonedit = FALSE)
52
t2 <- jsonlite::fromJSON(j)$data$x[[1]] %>%
53
as.POSIXct(format = "%Y-%m-%d %H:%M:%OS")
54
- expect_equal(as.numeric(mean(diff(t2))), 0.1)
+ expect_equal(as.numeric(mean(diff(t2))), 0.1, tolerance = 0.01)
55
expect_doppelganger_built(p, "line-milliseconds")
56
})
57
0 commit comments