Skip to content

Commit

Permalink
Update project templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ifosli committed May 21, 2024
1 parent 0cf7b41 commit 3b16272
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 4,254 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ final class FetchProjectsEnvelope_FetchBackerProjectsQueryDataTests: XCTestCase
return
}

XCTAssertEqual(env.projects.count, 25)
XCTAssertEqual(env.projects.count, 3)
XCTAssertEqual(env.projects.first?.name, "Zan's Late Pledge Campaign")
XCTAssertEqual(env.totalCount, 59)
XCTAssertEqual(env.totalCount, 3)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,9 @@ final class Project_FetchProjectQueryDataTests: XCTestCase {
XCTAssertEqual(project.flagging, false)

/// Project User
XCTAssertEqual(
project.creator.avatar.large,
"https://i.kickstarter.com/assets/033/846/528/69cae8b2ccc2403e233b5715cb1f869f_original.png?anim=false&fit=crop&height=1024&origin=ugc-qa&q=92&width=1024&sig=Aqxdt8UgJpaDfrw6J1yrxsCD1IMS%2FZMnpPjISr2HX7I%3D"
)
XCTAssertEqual(
project.creator.avatar.medium,
"https://i.kickstarter.com/assets/033/846/528/69cae8b2ccc2403e233b5715cb1f869f_original.png?anim=false&fit=crop&height=1024&origin=ugc-qa&q=92&width=1024&sig=Aqxdt8UgJpaDfrw6J1yrxsCD1IMS%2FZMnpPjISr2HX7I%3D"
)
XCTAssertEqual(
project.creator.avatar.small,
"https://i.kickstarter.com/assets/033/846/528/69cae8b2ccc2403e233b5715cb1f869f_original.png?anim=false&fit=crop&height=1024&origin=ugc-qa&q=92&width=1024&sig=Aqxdt8UgJpaDfrw6J1yrxsCD1IMS%2FZMnpPjISr2HX7I%3D"
)
XCTAssertEqual(project.creator.avatar.large, "image-a")
XCTAssertEqual(project.creator.avatar.medium, "image-a")
XCTAssertEqual(project.creator.avatar.small, "image-a")
XCTAssertEqual(project.creator.erroredBackingsCount, 1)
XCTAssertEqual(project.creator.id, decompose(id: "VXNlci0xNTMyMzU3OTk3"))
XCTAssertTrue(project.creator.isEmailVerified!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ final class Project_ProjectFragmentTests: XCTestCase {
"hasUnreadMessages":false,
"isSocializing":true,
"hasUnseenActivity":true,
"email":"tim_stolinski@yahoo.com.ksr",
"email":"t@example.com",
"hasPassword":null,
"id":"VXNlci0xMDA3NTM5MDAy",
"imageUrl":"https://i.kickstarter.com/assets/033/589/257/1202c14c958cc40645e67f7792a8b10a_original.png?anim=false&fit=crop&height=1024&origin=ugc-qa&q=92&width=1024&sig=ToW%2BTKQhE33LMs7emRVGC0n%2FDAEkIMw2C71CRtoPR%2FM%3D",
"imageUrl":"fake-image-url",
"isAppleConnected":null,
"isBlocked":false,
"isCreator":true,
Expand All @@ -336,10 +336,10 @@ final class Project_ProjectFragmentTests: XCTestCase {
"isFacebookConnected":true,
"isKsrAdmin":false,
"isFollowing":true,
"name":"Band of Bards Comics",
"name":"Creator Tiger",
"needsFreshFacebookToken":false,
"showPublicProfile":true,
"uid":"1007539002",
"uid":"11",
"location":{
"__typename":"Location",
"country":"US",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ public enum FetchProjectFriendsQueryTemplate {
},
"backingsCount": 3,
"chosenCurrency":null,
"email":"theaschneider@gmx.net.ksr",
"email":"a@example.com",
"hasPassword":null,
"id":"VXNlci0xNTMyMzU3OTk3",
"imageUrl":"https://i.kickstarter.com/assets/033/846/528/69cae8b2ccc2403e233b5715cb1f869f_original.png?anim=false&fit=crop&height=1024&origin=ugc-qa&q=92&width=1024&sig=Aqxdt8UgJpaDfrw6J1yrxsCD1IMS%2FZMnpPjISr2HX7I%3D",
"imageUrl":"image-a",
"isAppleConnected":null,
"isBlocked":false,
"isCreator":true,
Expand All @@ -95,7 +95,7 @@ public enum FetchProjectFriendsQueryTemplate {
"name":"Thea Schneider",
"needsFreshFacebookToken":true,
"showPublicProfile":true,
"uid":"1532357997",
"uid":"101",
"location":{
"country":"US",
"countryName":"United States",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ public enum FetchProjectQueryTemplate {
},
"backingsCount": 3,
"chosenCurrency":null,
"email":"theaschneider@gmx.net.ksr",
"email":"a@example.com",
"hasPassword":null,
"id":"VXNlci0xNTMyMzU3OTk3",
"imageUrl":"https://i.kickstarter.com/assets/033/846/528/69cae8b2ccc2403e233b5715cb1f869f_original.png?anim=false&fit=crop&height=1024&origin=ugc-qa&q=92&width=1024&sig=Aqxdt8UgJpaDfrw6J1yrxsCD1IMS%2FZMnpPjISr2HX7I%3D",
"imageUrl":"image-a",
"isAppleConnected":null,
"isBlocked":false,
"isCreator":true,
Expand All @@ -83,10 +83,10 @@ public enum FetchProjectQueryTemplate {
"isFacebookConnected": false,
"isFollowing": true,
"isKsrAdmin": true,
"name":"Thea Schneider",
"name":"A Anchor",
"needsFreshFacebookToken": true,
"showPublicProfile": true,
"uid":"1532357997",
"uid":"101",
"location": {
"country": "US",
"countryName": "United States",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ public enum FetchUserBackingsQueryTemplate {
"backer": [
"__typename": "User",
"chosenCurrency": "USD",
"email": "singh.harichandan@gmail.com",
"email": "user@example.com",
"hasPassword": true,
"id": "VXNlci0xNDcwOTUyNTQ1",
"imageUrl": "https://i.kickstarter.com/missing_user_avatar.png?anim=false&fit=crop&height=1024&origin=ugc-qa&q=92&width=1024&sig=3CEELuVLNdj97Pjx4PDy7Q9OTZfKyMEZyeIlQicGPBY%3D",
"imageUrl": "example.com/profile-pic",
"isAppleConnected": false,
"isCreator": false,
"isDeliverable": true,
"isEmailVerified": true,
"name": "Hari Singh",
"uid": "1470952545"
"name": "Example Backer",
"uid": "12345"
],
"backerCompleted": false,
"bonusAmount": [
Expand Down Expand Up @@ -93,16 +93,16 @@ public enum FetchUserBackingsQueryTemplate {
"creator": [
"__typename": "User",
"chosenCurrency": nil,
"email": "afees.olabisi@gmail.com",
"email": "c@example.com",
"hasPassword": nil,
"id": "VXNlci03NDAzNzgwNzc=",
"imageUrl": "https://i.kickstarter.com/assets/033/406/310/0643a06ea18a1462cc8466af5718d9ef_original.jpeg?anim=false&fit=crop&height=1024&origin=ugc-qa&q=92&width=1024&sig=f65xrY5%2ByRh3HWkJK9bpJA485zuH0XK7iiIk2bOGjLw%3D",
"imageUrl": "example.com/creator-image",
"isAppleConnected": nil,
"isCreator": nil,
"isDeliverable": true,
"isEmailVerified": true,
"name": "Afees Lawal",
"uid": "740378077"
"name": "Creator",
"uid": "56789"
],
"currency": "USD",
"deadlineAt": 1_683_676_800,
Expand Down
Loading

0 comments on commit 3b16272

Please sign in to comment.