Sha256: ef301c04c226fb18a19636ee7c2ee76949fdfa2aa5a383df0dc8bc6c848354c7
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
# frozen_string_literal: true require 'test_helper' class TestConfiguration < Minitest::Test def test_default_configuration configuration = Jekyll::TableOfContents::Configuration.new({}) assert_equal(1..6, configuration.toc_levels) refute(configuration.ordered_list) assert_equal('no_toc_section', configuration.no_toc_section_class) assert_equal('toc', configuration.list_id) assert_equal('section-nav', configuration.list_class) assert_equal('', configuration.sublist_class) assert_equal('toc-entry', configuration.item_class) assert_equal('toc-', configuration.item_prefix) end def test_type_error configuration = Jekyll::TableOfContents::Configuration.new('TypeError!') assert_equal(1..6, configuration.toc_levels) refute(configuration.ordered_list) assert_equal('no_toc_section', configuration.no_toc_section_class) assert_equal('toc', configuration.list_id) assert_equal('section-nav', configuration.list_class) assert_equal('', configuration.sublist_class) assert_equal('toc-entry', configuration.item_class) assert_equal('toc-', configuration.item_prefix) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jekyll-toc-0.17.1 | test/test_configuration.rb |
jekyll-toc-0.17.0 | test/test_configuration.rb |
jekyll-toc-0.16.1 | test/test_configuration.rb |
jekyll-toc-0.16.0 | test/test_configuration.rb |