Skip to content

Commit baebde4

Browse files
e-kotovCopilot
andauthored
Update tests/testthat/test-java_env.R
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 72ef14a commit baebde4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/testthat/test-java_env.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
test_that("java_get_home() gets java_get_home", {
1+
test_that("java_get_home() gets JAVA_HOME", {
22
withr::with_envvar(
3-
c("java_get_home" = "/path/to/java"),
3+
c("JAVA_HOME" = "/path/to/java"),
44
expect_equal(java_get_home(), "/path/to/java")
55
)
66
})
77

8-
test_that("java_get_home() returns empty string when java_get_home is not set", {
8+
test_that("java_get_home() returns empty string when JAVA_HOME is not set", {
99
withr::with_envvar(
10-
c("java_get_home" = NA),
10+
c("JAVA_HOME" = NA),
1111
{
12-
Sys.unsetenv("java_get_home")
12+
Sys.unsetenv("JAVA_HOME")
1313
expect_equal(java_get_home(), "")
1414
}
1515
)

0 commit comments

Comments
 (0)