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.
expect_snapshot_condition_()
1 parent be0ce42 commit 9bfe131Copy full SHA for 9bfe131
R/snapshot.R
@@ -268,21 +268,16 @@ expect_snapshot_condition_ <- function(
268
)
269
if (is.null(val)) {
270
if (base_class == class) {
271
- return(fail(
272
- sprintf("%s did not generate %s", lab, base_class),
273
- trace_env = trace_env
274
- ))
+ msg <- sprintf("%s did not generate %s", lab, base_class)
275
} else {
276
277
- sprintf(
278
- "%s did not generate %s with class '%s'",
279
- lab,
280
- base_class,
281
- class
282
- ),
283
284
+ msg <- sprintf(
+ "%s did not generate %s with class '%s'",
+ lab,
+ base_class,
+ class
+ )
285
}
+ return(fail(msg, trace_env = trace_env))
286
287
288
expect_snapshot_helper(
0 commit comments