Skip to content

Commit

Permalink
Improve test
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Fuller <[email protected]>
  • Loading branch information
tinder-garricnahapetian and tinder-cfuller authored Oct 31, 2023
1 parent 0af1bf5 commit 758d83a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Tests/LayoutTests/ViewLayoutItemTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,17 @@ final class ViewLayoutItemTests: XCTestCase {
layoutItems.append(layoutItem)
return [constraint]
}
// THEN

Check failure on line 31 in Tests/LayoutTests/ViewLayoutItemTests.swift

View workflow job for this annotation

GitHub Actions / Swift

"GIVEN / WHEN / THEN" comments must be uppercase, without punctuation and both preceded and followed by an empty line.

expect(viewLayoutItem.layoutItemView) == view

// WHEN

let superviewConstraints: [NSLayoutConstraint] = viewLayoutItem.superviewConstraints(superview)

// THEN

expect(layoutItems === [superview]) == true
expect(viewLayoutItem.layoutItemView) == view
expect(superviewConstraints === [constraint]) == true
expect(layoutItems === [superview]) == true
}
}

0 comments on commit 758d83a

Please sign in to comment.