Skip to content

Commit

Permalink
Add test-zzz.R
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvartan committed May 23, 2021
1 parent dccc4c5 commit a719d42
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
10 changes: 5 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Authors@R:
role = c("aut", "sad"),
email = "pedrazzo@usp.br",
comment = c(ORCID = "0000-0002-5257-591X")),
person(given = "Jonathan",
family = "Keane",
role = "rev",
email = "jkeane@gmail.com",
comment = c(ORCID = "0000-0001-7087-9776")),
person(given = "Jonathan",
family = "Keane",
role = "rev",
email = "jkeane@gmail.com",
comment = c(ORCID = "0000-0001-7087-9776")),
person(given = "Interdisciplinary Sleep Research Group (GIPSO)",
role = c("fnd", "cph")),
person(given = "University of Sao Paulo (USP)",
Expand Down
12 changes: 12 additions & 0 deletions tests/testthat/test-zzz.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
test_that(".onAttach() | general test", {
# is_interactive <- mctq:::is_interactive

mock <- function(.parent = parent.frame(), .env = topenv(.parent)) {
mockr::with_mock(
is_interactive = function(...) TRUE,
.onAttach())
}

# mock()
expect_null(mock(), NULL)
})

0 comments on commit a719d42

Please sign in to comment.