Sha256: 77c6d585ac0f30e0b058e6ba26c1dce6955c01bc5cbcd0bf221d671bba498784
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 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 @context = Struct.new(:registers).new(page: { "toc" => false }) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-toc-0.12.0.rc2 | test/test_jekyll-toc.rb |