Skip to content

Commit

Permalink
Add test for styled text in BPKText
Browse files Browse the repository at this point in the history
  • Loading branch information
frugoman committed Dec 22, 2023
1 parent 753f3f0 commit 17887a6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Backpack-SwiftUI/Tests/Text/BPKTextTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,14 @@ class BPKTextTests: XCTestCase {
assertSnapshot(BPKText("Hello Backpack, I hope you're having a great day!", style: .heading1))
}

func test_withStyledText() {
assertSnapshot(BPKText("Hello **Backpack**, I hope you're having a _great_ day!", style: .heading1))
}

func test_customColor() {
assertSnapshot(
BPKText("Hello Backpack, I hope you're having a great day!")
.foregroundColor(.primaryColor)
.foregroundColor(.coreAccentColor)
)
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 17887a6

Please sign in to comment.