Skip to content

Commit 6f129fe

Browse files
committed
Fix test typos
1 parent 37c8c49 commit 6f129fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/testthat/test-ggplot-point.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ test_that("can plot on sub-second time scale", {
4646

4747

4848
test_that("tickvals/ticktext are appropriately boxed", {
49-
d <- data.frame(x = factor(1), y = 10)
49+
d <- data.frame(x = factor(75), y = 10)
5050
p <- qplot(x, y, data = d)
51-
info <- save_outputs(g, "point-box")
51+
info <- save_outputs(p, "point-box")
5252
expect_true(plotly::to_JSON(info$layout$xaxis$tickvals) == '[1]')
53-
expect_true(plotly::to_JSON(l$layout$xaxis$tickvals) == '["56"]')
53+
expect_true(plotly::to_JSON(info$layout$xaxis$ticktext) == '["75"]')
5454
})

0 commit comments

Comments
 (0)