Skip to content

Commit 3362a6b

Browse files
committed
whoops; don't add cookbook tests
1 parent e32273a commit 3362a6b

File tree

2 files changed

+0
-224
lines changed

2 files changed

+0
-224
lines changed

test-cookbook-bars-and-lines.R

-210
This file was deleted.

tests/testthat/test-ggplot-categorical.R

-14
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,3 @@ test_that("axis type=category when we plot factors", {
1111

1212
save_outputs(gg, "bar-factor-category")
1313
})
14-
15-
test_that("Bar charts of type=category show category names", {
16-
gbar <- ggplot(d, aes(cut, price)) + geom_bar(stat="identity")
17-
info <- gg2list(gbar)
18-
19-
expect_equal(length(info), 2) # 1 trace + layout
20-
expect_identical(info$kwargs$layout$xaxis$type, "category")
21-
expect_identical(info$kwargs$layout$xaxis$title, "cut")
22-
expect_identical(info$kwargs$layout$yaxis$type, "linear")
23-
expect_true(all(c("Fair", "Good", "Very Good", "Premium", "Ideal") %in%
24-
info[[1]]$x))
25-
26-
save_outputs(gbar, "bar-category-names")
27-
})

0 commit comments

Comments
 (0)