Skip to content

Commit 7c73b65

Browse files
committed
Tweak unit tests
- Included the sources and exclude section that was accidentally omitted when staging a recent commit. - Renamed the example name in the tests.
1 parent cca67f5 commit 7c73b65

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

Package.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,16 @@ let package = Package(
4545
//
4646
.testTarget(
4747
name: "ATProtoKitTests",
48-
dependencies: ["ATProtoKit"]),
48+
dependencies: ["ATProtoKit"],
49+
path: "Tests",
50+
exclude: [
51+
"Helpers/park.jpg",
52+
"Helpers/reading_with_coffee.jpg"
53+
],
54+
sources: [
55+
"ATProtoKitTests",
56+
"Helpers"
57+
]),
4958
]
5059
)
5160

Tests/ATProtoKitTests/ATProtoKitTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ struct ATFacetParserTests {
1717
let pdsURL = "https://bsky.social"
1818
let serviceEndpoint = try #require(URL(string: "https://pds.host.bsky.network"))
1919
let session = UserSession(
20-
handle: "alice.example.com",
21-
sessionDID: "did:plc:alice",
20+
handle: "lucy.example.com",
21+
sessionDID: "did:plc:lucy",
2222
isEmailAuthenticationFactorEnabled: false,
2323
isActive: true,
2424
status: nil,
@@ -34,8 +34,8 @@ struct ATFacetParserTests {
3434
let matchingPDSURL = "https://pds.host.bsky.network"
3535
let matchingServiceEndpoint = try #require(URL(string: matchingPDSURL))
3636
let matchingSession = UserSession(
37-
handle: "alice.example.com",
38-
sessionDID: "did:plc:alice",
37+
handle: "lucy.example.com",
38+
sessionDID: "did:plc:lucy",
3939
isEmailAuthenticationFactorEnabled: false,
4040
isActive: true,
4141
status: nil,

0 commit comments

Comments
 (0)