Skip to content

Commit ac6fb46

Browse files
committed
update unit test
1 parent 22eb974 commit ac6fb46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-file_contains.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ test_that("file_contains_aa() works properly with input aa fasta file ...", {
66
})
77

88
test_that("file_contains_aa() throws error when input file contains dna rather than aa ...", {
9-
expect_error(file_contains_aa(system.file('seqs/qry_nn.fa', package = 'metablastr'), "query"))
9+
expect_warning(file_contains_aa(system.file('seqs/qry_nn.fa', package = 'metablastr'), "query"))
1010

1111
})
1212

@@ -16,7 +16,7 @@ test_that("file_contains_dna() works properly with input dna fasta file ...", {
1616
})
1717

1818
test_that("file_contains_dna() throws error when input file contains aa rather than dna ...", {
19-
expect_error(file_contains_dna(system.file('seqs/qry_aa.fa', package = 'metablastr'), "query")
19+
expect_warning(file_contains_dna(system.file('seqs/qry_aa.fa', package = 'metablastr'), "query")
2020
)
2121

2222
})

0 commit comments

Comments
 (0)