Skip to content

Commit

Permalink
removed trailing stub
Browse files Browse the repository at this point in the history
  • Loading branch information
FvD committed Aug 16, 2020
1 parent 5fc569a commit 1e1ef77
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions tests/testthat/test-cleaning.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
context("Cleaning")

testthat::test_that("List are removed from the pipeline report", {

mockery::stub(where = get_pipeline_report,
what = "jsonlite::validate",
how = TRUE)
Expand All @@ -16,7 +15,6 @@ testthat::test_that("List are removed from the pipeline report", {

expect_equal(ncol(pipeline_test), 33)
expect_equal(nrow(pipeline_test), 7)

})


Expand All @@ -29,15 +27,11 @@ testthat::test_that("Lists are removed from the contacts information", {
what = "jsonlite::fromJSON",
how = contact_information)

#mockery::stub(where = get_contact_information,
# what = "get_request",
# how = )

get_contact_information_test <- get_contact_information(user_code = "user_code_test",
api_token = "token_api_test",
contact_id = "123")
get_contact_information_test <- get_contact_information(
user_code = "user_code_test",
api_token = "token_api_test",
contact_id = "123")

expect_equal(ncol(get_contact_information_test), 20)
expect_equal(nrow(get_contact_information_test), 1)

})

0 comments on commit 1e1ef77

Please sign in to comment.