Skip to content

Commit 82dc370

Browse files
PanchamiShenoyPanchamiShenoy
authored andcommitted
[CM-913] Updated line height mutator unit test case
1 parent 169c4f4 commit 82dc370

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/YMatterTypeTests/Typography/Typography+MutatorsTests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ final class TypographyMutatorsTests: XCTestCase {
5656

5757
func testLineHeight() {
5858
types.forEach {
59-
_test(original: $0, modified: $0.lineHeight($0.lineHeight + 1), lineHeight: ($0.lineHeight + 1))
59+
let newLineHeight = $0.lineHeight + 2
60+
_test(original: $0, modified: $0.lineHeight(newLineHeight), lineHeight: newLineHeight)
6061
}
6162
}
6263

@@ -109,7 +110,7 @@ final class TypographyMutatorsTests: XCTestCase {
109110
let textCase = textCase ?? original.textCase
110111
let textDecoration = textDecoration ?? original.textDecoration
111112

112-
// fontWeight, fontSize, isFixed, letterSpacing, textCase, and textDecoration should be as expected
113+
// fontWeight, fontSize, lineHeight, isFixed, letterSpacing, textCase, and textDecoration should be as expected
113114
XCTAssertEqual(modified.fontWeight, weight)
114115
XCTAssertEqual(modified.fontSize, fontSize)
115116
XCTAssertEqual(modified.lineHeight, lineHeight)

0 commit comments

Comments
 (0)