Skip to content

Commit

Permalink
update failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JBGruber committed Sep 20, 2024
1 parent 04f7852 commit 3cb845a
Show file tree
Hide file tree
Showing 30 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions R/feed.r
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#'
#' @examples
#' \dontrun{
#' feed <- get_skeets_authored_by("profmusgrave.bsky.social")
#' feed <- get_skeets_authored_by("andrew.heiss.phd")
#' }
get_skeets_authored_by <- function(actor,
limit = 25L,
Expand Down Expand Up @@ -69,7 +69,7 @@ get_skeets_authored_by <- function(actor,
#'
#' @examples
#' \dontrun{
#' feed <- get_feeds_created_by("profmusgrave.bsky.social")
#' feed <- get_feeds_created_by("andrew.heiss.phd")
#' }
get_feeds_created_by <- function(actor,
limit = 25L,
Expand Down
2 changes: 1 addition & 1 deletion man/get_feeds_created_by.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/get_skeets_authored_by.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/testthat/recorded_responses/app.bsky.feed.getLikes_26bda.rds
Binary file not shown.
Binary file modified tests/testthat/recorded_responses/app.bsky.feed.getLikes_95deb.rds
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 9 additions & 9 deletions tests/testthat/test-feed.R
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
test_that("get skeets by author", {
expect_type(get_skeets_authored_by("profmusgrave.bsky.social", parse = FALSE), "list")
expect_s3_class(get_skeets_authored_by("profmusgrave.bsky.social"), "tbl_df")
expect_gte(nrow(get_skeets_authored_by("profmusgrave.bsky.social")), 1L)
expect_type(get_skeets_authored_by("andrew.heiss.phd", parse = FALSE), "list")
expect_s3_class(get_skeets_authored_by("andrew.heiss.phd"), "tbl_df")
expect_gte(nrow(get_skeets_authored_by("andrew.heiss.phd")), 1L)
})

test_that("get feeds by author", {
expect_type(get_feeds_created_by("profmusgrave.bsky.social", parse = FALSE), "list")
expect_s3_class(get_feeds_created_by("profmusgrave.bsky.social"), "tbl_df")
expect_gte(nrow(get_feeds_created_by("profmusgrave.bsky.social")), 1L)
expect_type(get_feeds_created_by("andrew.heiss.phd", parse = FALSE), "list")
expect_s3_class(get_feeds_created_by("andrew.heiss.phd"), "tbl_df")
expect_gte(nrow(get_feeds_created_by("andrew.heiss.phd")), 1L)
})

test_that("search feeds", {
expect_type(get_feeds_created_by("profmusgrave.bsky.social", parse = FALSE), "list")
expect_s3_class(get_feeds_created_by("profmusgrave.bsky.social"), "tbl_df")
expect_gte(nrow(get_feeds_created_by("profmusgrave.bsky.social")), 1L)
expect_type(get_feeds_created_by("andrew.heiss.phd", parse = FALSE), "list")
expect_s3_class(get_feeds_created_by("andrew.heiss.phd"), "tbl_df")
expect_gte(nrow(get_feeds_created_by("andrew.heiss.phd")), 1L)
})

test_that("search feeds", {
Expand Down

0 comments on commit 3cb845a

Please sign in to comment.