Sha256: aa3ced00ff5b62de06eaed53b9d897218edaa5a78d0e5b81e69a6e4d694fa0bc
Contents?: true
Size: 973 Bytes
Versions: 9
Compression:
Stored size: 973 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class TestConfiguration < Minitest::Test def test_default_conf1guration configuration = Jekyll::TableOfContents::Configuration.new({}) assert_equal configuration.toc_levels, 1..6 assert_equal configuration.no_toc_section_class, 'no_toc_section' assert_equal configuration.list_class, 'section-nav' assert_equal configuration.sublist_class, '' assert_equal configuration.item_class, 'toc-entry' assert_equal configuration.item_prefix, 'toc-' end def test_type_error configuration = Jekyll::TableOfContents::Configuration.new('TypeError!') assert_equal configuration.toc_levels, 1..6 assert_equal configuration.no_toc_section_class, 'no_toc_section' assert_equal configuration.list_class, 'section-nav' assert_equal configuration.sublist_class, '' assert_equal configuration.item_class, 'toc-entry' assert_equal configuration.item_prefix, 'toc-' end end
Version data entries
9 entries across 9 versions & 1 rubygems