Skip to content

Commit 046f888

Browse files
committed
Update GitLogTests to use contains for branch expectations.
1 parent a79b176 commit 046f888

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GitClientTests/GitLogTests.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ struct GitLogTests {
1616
#expect(commits.last!.hash == "f9635d9f3b39534e84f183555274867199af76a3")
1717
#expect(commits.last!.title == "Initial Commit")
1818
#expect(commits.first!.abbreviatedParentHashes == ["cfae930", "e129fc7"])
19-
#expect(commits.first!.branches == ["HEAD -> main", "origin/main", "origin/HEAD"])
19+
#expect(commits.first!.branches.contains("origin/main"))
20+
#expect(commits.first!.branches.contains("origin/HEAD"))
2021
#expect(commits.first!.tags == ["v0.2.0"])
2122
#expect(commits.count == 29)
2223
}

0 commit comments

Comments
 (0)