Skip to content

Commit

Permalink
Add test that confirms line break support in ref #15
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Dec 21, 2019
1 parent be26664 commit 286074e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/unit/parse/br_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

RSpec.describe TTY::Markdown, 'newline' do
let(:symbols) { TTY::Markdown.symbols }

it "breaks a line" do
markdown =<<-TEXT
hello \nworld
TEXT
parsed = TTY::Markdown.parse(markdown)
expect(parsed).to eq("hello\n\nworld\n")
end
end

0 comments on commit 286074e

Please sign in to comment.