Skip to content

Commit 7abe742

Browse files
committed
fixed tests
1 parent 77a376e commit 7abe742

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/testthat/test-check.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ test_that("check abstract works", {
6868
expect_SUCCESS <- function(expr) expect_equal(c(expr), "SUCCESS")
6969
expect_NOTE <- function(expr) expect_equal(c(expr), "NOTE")
7070
expect_ERROR <- function(expr) expect_equal(c(expr), "ERROR")
71+
expect_WARNING <- function(expr) expect_equal(c(expr), "WARNING")
7172

7273
article_path <- system.file("sample-article", package = "rjtools")
7374
bad_article_path <- "../bad-article"
@@ -96,7 +97,7 @@ test_that("structure check works", {
9697

9798
test_that("title check works", {
9899
expect_SUCCESS(check_title(article_path))
99-
expect_ERROR(check_title(bad_article_path))
100+
expect_WARNING(check_title(bad_article_path))
100101
})
101102

102103
test_that("section check works", {

0 commit comments

Comments
 (0)