Skip to content

Commit 259f230

Browse files
committed
Test against error message
1 parent 9338d58 commit 259f230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-layer.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ test_that("layer_data returns a data.frame", {
4343
l <- geom_point(data = head)
4444
expect_equal(l$layer_data(mtcars), head(mtcars))
4545
l <- geom_point(data = nrow)
46-
expect_error(l$layer_data(mtcars))
46+
expect_error(l$layer_data(mtcars), "Data function must return a data.frame")
4747
})

0 commit comments

Comments
 (0)