Skip to content

Commit f46636a

Browse files
committed
remove error snapshots
1 parent 5a877c3 commit f46636a

File tree

2 files changed

+0
-38
lines changed

2 files changed

+0
-38
lines changed

tests/testthat/_snaps/layer.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -145,25 +145,3 @@
145145

146146
`layer_data()` must return a <data.frame>.
147147

148-
# get_layer_data works with layer names
149-
150-
Can't extract elements that don't exist.
151-
x Element `none` doesn't exist.
152-
153-
---
154-
155-
Can't extract elements past the end.
156-
i Location 4 doesn't exist.
157-
i There are only 2 elements.
158-
159-
# get_layer_grob works with layer names
160-
161-
Can't extract elements that don't exist.
162-
x Element `none` doesn't exist.
163-
164-
---
165-
166-
Can't extract elements past the end.
167-
i Location 4 doesn't exist.
168-
i There are only 2 elements.
169-

tests/testthat/test-layer.R

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,6 @@ test_that("get_layer_data works with layer names", {
234234
get_layer_data(p, i = "bar"),
235235
get_layer_data(p, i = 2L)
236236
)
237-
238-
# name falls back to index
239-
expect_snapshot_error(
240-
get_layer_data(p, i ="none")
241-
)
242-
expect_snapshot_error(
243-
get_layer_data(p, i = 4L)
244-
)
245237
})
246238

247239
test_that("get_layer_grob works with layer names", {
@@ -252,14 +244,6 @@ test_that("get_layer_grob works with layer names", {
252244
get_layer_grob(p, i = "bar"),
253245
get_layer_grob(p, i = 2L)
254246
)
255-
256-
# name falls back to index
257-
expect_snapshot_error(
258-
get_layer_grob(p, i ="none")
259-
)
260-
expect_snapshot_error(
261-
get_layer_grob(p, i = 4L)
262-
)
263247
})
264248

265249
test_that("data.frames and matrix aesthetics survive the build stage", {

0 commit comments

Comments
 (0)