From b17912e098365408345a547f9d59ab2718a811e2 Mon Sep 17 00:00:00 2001 From: Julia Silge Date: Tue, 26 Nov 2024 17:55:17 -0700 Subject: [PATCH] Update test --- tests/testthat/_snaps/board_connect_bundle.md | 6 ++++++ tests/testthat/test-board_connect_bundle.R | 1 + 2 files changed, 7 insertions(+) diff --git a/tests/testthat/_snaps/board_connect_bundle.md b/tests/testthat/_snaps/board_connect_bundle.md index f96c4e7e..cf064ae0 100644 --- a/tests/testthat/_snaps/board_connect_bundle.md +++ b/tests/testthat/_snaps/board_connect_bundle.md @@ -124,6 +124,12 @@ ..$ rows :List of 2 .. ..$ min : num 1 .. ..$ total: int 2 + Code + str(rsc_bundle_preview_data(df, preview = FALSE)) + Output + List of 2 + $ data : list() + $ columns: list() --- diff --git a/tests/testthat/test-board_connect_bundle.R b/tests/testthat/test-board_connect_bundle.R index 17bd6b5b..5f79ac95 100644 --- a/tests/testthat/test-board_connect_bundle.R +++ b/tests/testthat/test-board_connect_bundle.R @@ -42,6 +42,7 @@ test_that("generates preview data", { expect_snapshot({ df <- data.frame(x = 1:2, y = c("a", "b"), stringsAsFactors = FALSE) str(rsc_bundle_preview_data(df)) + str(rsc_bundle_preview_data(df, preview = FALSE)) }) # for NULL