This commit is contained in:
Douwe Maan 2017-05-23 14:56:05 -05:00
parent 4070d58af7
commit 850b99830e
1 changed files with 13 additions and 0 deletions

View File

@ -65,6 +65,19 @@ describe 'Copy as GFM', feature: true, js: true do
GFM GFM
) )
aggregate_failures('an accidentally selected empty element') do
gfm = '# Heading1'
html = <<-HTML.strip_heredoc
<h1>Heading1</h1>
<h2></h2>
HTML
output_gfm = html_to_gfm(html)
expect(output_gfm.strip).to eq(gfm.strip)
end
verify( verify(
'InlineDiffFilter', 'InlineDiffFilter',