Sha256: 2aebf9fa72406bd325e9030d99c65b9ff2513633716501f58b61fa07ac90bba3

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class TestTOCOnlyFilter < Minitest::Test
  include TestHelpers

  def setup
    read_html_and_create_parser
  end

  def test_injects_toc_container
    html = @parser.build_toc

    assert_includes(html, %(<ul class="section-nav">))
  end

  def test_does_not_return_content
    html = @parser.build_toc

    refute_includes(html, %(<h1>Simple H1</h1>))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-toc-0.15.0 test/parser/test_toc_only_filter.rb