We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 270d20e commit e720a51Copy full SHA for e720a51
tests/testthat/test-ggplot-lines.R
@@ -50,7 +50,7 @@ test_that("Milliseconds are preserved with dynamic ticks", {
50
p <- ggplotly(gg, dynamicTicks = TRUE)
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")
+ as.POSIXct(format = "%Y-%m-%d %H:%M:%OS", origin = "1970-01-01 00:00:00")
54
expect_equal(as.numeric(mean(diff(t2))), 0.1, tolerance = 0.01)
55
expect_doppelganger_built(p, "line-milliseconds")
56
})
0 commit comments