Skip to content

Commit 492bea4

Browse files
authored
Merge pull request #567 from Crunch-io/fix-kwarg-print
cleanup integration test I broke
2 parents 982c748 + 8264afc commit 492bea4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/testthat/test-subtotals-and-headings.R

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -335,17 +335,17 @@ with_test_authentication({
335335

336336
expect_json_equivalent(transforms(ds$v4), trans_resp)
337337

338-
# TODO: FIX for kwargs
339-
# expect_prints(subtotals(ds$v4),
340-
# get_output(data.frame(
341-
# anchor = c("top", 1, 2, "bottom"),
342-
# name = c("This is a subtitle", "B alone", "C alone", "B+C"),
343-
# func = c(NA, "subtotal", "subtotal", "subtotal"),
344-
# args = c("NA", "1", "2", "1 and 2"),
345-
# stringsAsFactors = FALSE
346-
# )),
347-
# fixed = TRUE
348-
# )
338+
expect_prints(subtotals(ds$v4),
339+
get_output(data.frame(
340+
anchor = c("top", 1, 2, "bottom"),
341+
name = c("This is a subtitle", "B alone", "C alone", "B+C"),
342+
func = c(NA, "subtotal", "subtotal", "subtotal"),
343+
args = c("NA", "1", "2", "1 and 2"),
344+
kwargs = c("", "positive: 1 | ", "positive: 2 | ", "positive: 1 and 2 | "),
345+
stringsAsFactors = FALSE
346+
)),
347+
fixed = TRUE
348+
)
349349

350350
# check shape
351351
v4_ary <- array(c(NA, 10, 10, 10, 10, 20),

0 commit comments

Comments
 (0)