Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg committed Apr 29, 2024
1 parent 7eeb88c commit 459ba33
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/testthat/test-f7PhotoBrowser.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ test_that("photobrowser R function works", {
photos = list(
list(url = "https://cdn.framework7.io/placeholder/sports-1024x1024-1.jpg"),
list(url = "https://cdn.framework7.io/placeholder/sports-1024x1024-2.jpg"),
list(url = "https://cdn.framework7.io/placeholder/sports-1024x1024-3.jpg",
caption = "Me cycling")
list(
url = "https://cdn.framework7.io/placeholder/sports-1024x1024-3.jpg",
caption = "Me cycling"
)
),
thumbs = c(
"https://cdn.framework7.io/placeholder/sports-1024x1024-1.jpg",
Expand All @@ -50,6 +52,6 @@ test_that("photobrowser R function works", {
res$message <- jsonlite::fromJSON(res$message)
expect_length(res, 2)
expect_equal(res$type, "photoBrowser")
expect_length(res$message, length(formals(f7PhotoBrowser)))
expect_equal(res$message$id, "photobrowser1")
expect_equal(res$message$type, "page")
})

0 comments on commit 459ba33

Please sign in to comment.