Skip to content

Commit 2a72bf1

Browse files
Add font to the attributed string in unit tests.
1 parent 15160a8 commit 2a72bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/WooCommerceTests/Authentication/NotWPAccountViewModelTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final class NotWPAccountViewModelTests: XCTestCase {
3636
func test_viewmodel_provides_expected_error_message() {
3737
// Given
3838
let viewModel = NotWPAccountViewModel()
39-
let expectation = NSAttributedString(string: Expectations.errorMessage)
39+
let expectation = NSAttributedString(string: Expectations.errorMessage, attributes: [.font: UIFont.title3SemiBold])
4040

4141
// When
4242
let errorMessage = viewModel.text

0 commit comments

Comments
 (0)