Skip to content

Commit

Permalink
fixed formatting errors in markuptests
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcos Hernandez committed Dec 21, 2018
1 parent f4b36e7 commit eb941bd
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Tests/MarkupTests/MarkupRendererTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ class MarkupRendererTests: XCTestCase {
NSAttributedString(string: "there",
attributes: [NSAttributedString.Key.font: boldFont])
].joined()

// when
let result = sut.render(text: input)

// then
XCTAssertEqual(result, expected)
}

func testEmphasizedText_render_rendersItalicText() {
// given
let input = "hello _there_"
Expand All @@ -57,14 +57,14 @@ class MarkupRendererTests: XCTestCase {
NSAttributedString(string: "there",
attributes: [NSAttributedString.Key.font: italicFont])
].joined()

// when
let result = sut.render(text: input)

// then
XCTAssertEqual(result, expected)
}

func testDeletedText_render_rendersStrikethroughText() {
// given
let input = "hello ~there~"
Expand All @@ -79,14 +79,14 @@ class MarkupRendererTests: XCTestCase {
NSAttributedString(string: "there",
attributes: strikethroughAttributes)
].joined()

// when
let result = sut.render(text: input)

// then
XCTAssertEqual(result, expected)
}

func testStrongEmphasizedText_render_rendersBoldItalicText() {
// given
let input = "hello *_there_* _*there*_"
Expand All @@ -101,10 +101,10 @@ class MarkupRendererTests: XCTestCase {
NSAttributedString(string: "there",
attributes: [NSAttributedString.Key.font: boldItalicFont])
].joined()

// when
let result = sut.render(text: input)

// then
XCTAssertEqual(result, expected)
}
Expand Down

0 comments on commit eb941bd

Please sign in to comment.