# frozen_string_literal: true require 'test_helper' class TestCommands < Minitest::Test def test_basic out = make_bin('strong.md') assert_equal('

I am strong

', out) end def test_does_not_have_extensions out = make_bin('table.md') assert_includes out, '| a' refute_includes out, '

hi' refute_includes out, '' end def test_understands_extensions out = make_bin('table.md', '--extension=table') refute_includes out, '| a' refute_includes out, '

hi' %w[

a c
].each { |html| assert_includes out, html } end def test_understands_multiple_extensions out = make_bin('table.md', '--extension=table,strikethrough') refute_includes out, '| a' assert_includes out, '

hi' %w[

a c
].each { |html| assert_includes out, html } end end
a c