Skip to content

Commit

Permalink
Fix test for updated feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Swechhya committed Mar 9, 2020
1 parent 396c399 commit 5e8f088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test_selected_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ test_that("'get_selected_data' return null when excelObj is null ", {

test_that ("'get_selected_data' return a data frame when excelObj is not null", {
data <- matrix(1:50, ncol=5)
excelObj <- list(data=c(unname(as.data.frame(data))), colHeaders=as.list(c(rep("",5))), forSelectedVals = TRUE)
excelObj <- list(selectedData=c(unname(as.data.frame(data))), colHeaders=as.list(c(rep("",5))), forSelectedVals = TRUE)
testthat::expect_s3_class(get_selected_data(excelObj), "data.frame")
})

0 comments on commit 5e8f088

Please sign in to comment.