Skip to content

Commit b0f8b7c

Browse files
committed
feat: reworking the mocking so that windows is happy
1 parent 5d76156 commit b0f8b7c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

R/npx-is-available.R

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# For mocking purpose
2-
sys_which <- Sys.which
3-
cli__abort <- cli::cli_abort
2+
sys_which <- function(...){
3+
Sys.which(...)
4+
}
5+
cli__abort <- function(...){
6+
cli::cli_abort(...)
7+
}
48
#' Check if 'npx' is available in the system PATH
59
#'
610
#' @return TRUE if 'npx' is available, FALSE otherwise

0 commit comments

Comments
 (0)