Skip to content

Commit

Permalink
more test
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg committed Mar 22, 2024
1 parent e4b7542 commit 56b4c3d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/testthat/test-f7Progress.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ test_that("progress works", {
app$expect_values(input = "obs")
})

test_that("f7Progress works", {
progress <- f7Progress(id = "progress", 100, "green")
expect_s3_class(progress, "shiny.tag")
expect_identical(progress$attribs$class, "progressbar color-green")
expect_identical(progress$attribs$id, "progress")
expect_identical(progress$attribs$`data-progress`, 100)
})

test_that("updateF7Progress function work", {
session <- as.environment(list(
ns = identity,
Expand Down

0 comments on commit 56b4c3d

Please sign in to comment.