| 1 | context('default options') |
| 2 | |
| 3 | test_that('default options are set', { |
| 4 | expect_true(getOption('jupyter.rich_display')) |
| 5 | expect_equal(getOption('jupyter.log_level'), 1L) |
| 6 | expect_equal(getOption('jupyter.logfile'), NA) |
| 7 | expect_equal(getOption('jupyter.pager_classes'), c( |
| 8 | 'packageIQR', |
| 9 | 'help_files_with_topic')) |
| 10 | expect_equal(getOption('jupyter.plot_mimetypes'), c( |
| 11 | 'text/plain', |
| 12 | 'image/png')) |
| 13 | # this is not a kernel itself, only the loaded package! |
| 14 | expect_equal(getOption('jupyter.in_kernel'), FALSE) |
| 15 | }) |
| 16 |