Sha256: c675645110a7a74f351c6768446fa5dc55860d9097e12650302039167bb149eb
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class TestTableOfContentsFilter < Minitest::Test include Jekyll::TableOfContentsFilter DUMMY_HTML = "<div>Dummy HTML Content</div>" def setup stubbed_context = Struct.new(:registers) @context = stubbed_context.new(page: "xxx") @context end def test_toc_only assert_empty toc_only(DUMMY_HTML) end def test_inject_anchors assert_equal inject_anchors(DUMMY_HTML), DUMMY_HTML end def test_toc assert_equal toc(DUMMY_HTML), DUMMY_HTML end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-toc-0.11.0 | test/test_jekyll-toc.rb |
jekyll-toc-0.10.0 | test/test_jekyll-toc.rb |