Skip to content

Commit

Permalink
Repeat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Oct 8, 2024
1 parent b5fa6e0 commit 37df5d0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/testthat/test_modules.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ test_that("get modules", {
skip_if(V8::engine_info()$numeric_version < "6.3")
ctx <- V8::v8()
ctx$source('modules/main.js')
out <- ctx$eval('run_test()', await = TRUE)
expect_error(ctx$eval('test_bad_path()', await = TRUE), "path")
expect_equal(out, "579")
expect_equal(ctx$eval('run_test()', await = TRUE), "579")
expect_error(ctx$eval('test_syntax_error1()', await = TRUE), "SyntaxError")

expect_equal(ctx$eval('run_test()', await = TRUE), "579")
})

0 comments on commit 37df5d0

Please sign in to comment.