Skip to content

Commit

Permalink
Add snapshot just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
llrs committed Nov 18, 2022
1 parent 3c5e526 commit bb829f8
Showing 1 changed file with 86 additions and 0 deletions.
86 changes: 86 additions & 0 deletions tests/testthat/_snaps/api.new.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# create_bugzilla_key() works [plain]

Code
create_bugzilla_key()
Message <cliMessage>
v Found key `R_BUGZILLA`.
v Using key `R_BUGZILLA`.
x Not authenticated on this site.

# create_bugzilla_key() works [unicode]

Code
create_bugzilla_key()
Message <cliMessage>
✔ Found key `R_BUGZILLA`.
✔ Using key `R_BUGZILLA`.
✖ Not authenticated on this site.

# set_key works

Code
sk <- set_key()
Message <cliMessage>
v Found key `R_BUGZILLA`.
v Using key `R_BUGZILLA`.
Code
expect_equal(write_renviron(key = sk, value = sk, file = app_file()), NULL)
Message <cliMessage>
v Storing key on '~/.cache/R/bugRzilla/.Renviron'.

# check_key() works [plain]

Code
check_key(key_name = missing_key(), verbose = FALSE)
Output
[1] TRUE

# check_key() works [unicode]

Code
check_key(key_name = missing_key(), verbose = FALSE)
Output
[1] TRUE

# use_key() works [plain]

Code
use_key(missing_key())
Message <cliMessage>
v Using key `R_BUGZILLA`.

# use_key() works [unicode]

Code
use_key(missing_key())
Message <cliMessage>
✔ Using key `R_BUGZILLA`.

# valid_key() works [plain]

Code
valid_key(key = "hgfcchg12")
Output
[1] TRUE

# valid_key() works [ansi]

Code
valid_key(key = "hgfcchg12")
Output
[1] TRUE

# valid_key() works [unicode]

Code
valid_key(key = "hgfcchg12")
Output
[1] TRUE

# valid_key() works [fancy]

Code
valid_key(key = "hgfcchg12")
Output
[1] TRUE

0 comments on commit bb829f8

Please sign in to comment.