Skip to content

Commit

Permalink
Update test-runInapp.R
Browse files Browse the repository at this point in the history
  • Loading branch information
TGuillerme committed Jan 17, 2024
1 parent 8064f60 commit 9989f09
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/testthat/test-runInapp.R
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
context("RunInapp")
# context("RunInapp")

## Test
test_that("RunInapp works", {
# ## Test
# test_that("RunInapp works", {

## Sanitizing
expect_error(runInapp(remote = "blue"))
# ## Sanitizing
# expect_error(runInapp(remote = "blue"))

## Expect running (but not running)
expect_warning(msg <- capture_messages(expect_error(runInapp(remote = TRUE, ref = "doesntexist"))))
expect_equal(msg, "Downloading https://github.com/TGuillerme/Inapp/archive/doesntexist.tar.gz\n")
# ## Expect running (but not running)
# expect_warning(msg <- capture_messages(expect_error(runInapp(remote = TRUE, ref = "doesntexist"))))
# expect_equal(msg, "Downloading https://github.com/TGuillerme/Inapp/archive/doesntexist.tar.gz\n")

## Expect running (but not running)
expect_error(runInapp(remote = FALSE, path = "dummy"))
})
# ## Expect running (but not running)
# expect_error(runInapp(remote = FALSE, path = "dummy"))
# })

0 comments on commit 9989f09

Please sign in to comment.