Sha256: 2e15c71d8aa5b19cf22e8aeb8d9586cd54375a633842792e81ee328583bd7d5f
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 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('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('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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-toc-0.15.0 | test/test_configuration.rb |