Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg committed May 6, 2024
1 parent ce68d20 commit 937c548
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-deps.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
test_that("pwa compat deps", {
tag <- add_pwacompat_deps(shiny::div())
deps <- htmltools::findDependencies(tag)
expect_s3_class(deps, "list")
expect_type(deps, "list")
expect_length(deps, 1)
dep <- deps[[1]]
expect_identical(dep$name, "pwacompat")
Expand All @@ -10,7 +10,7 @@ test_that("pwa compat deps", {
test_that("pwa deps", {
tag <- add_pwa_deps(shiny::div())
deps <- htmltools::findDependencies(tag)
expect_s3_class(deps, "list")
expect_type(deps, "list")
expect_length(deps, 1)
dep <- deps[[1]]
expect_identical(dep$name, "pwa-utils")
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-f7Accordion.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
library(shinytest2)

test_that("accordion", {
expect_true(inherits(f7Accordion(), "shiny.tag"))
expect_equal(f7Accordion()$attribs$class, "list list-strong list-outline-ios list-dividers-ios inset-md accordion-list")
Expand Down

0 comments on commit 937c548

Please sign in to comment.