Skip to content

Commit 64ba491

Browse files
committed
Update mock data for LeaderboardListMapperTests
1 parent fc0583a commit 64ba491

File tree

4 files changed

+53
-397
lines changed

4 files changed

+53
-397
lines changed

Networking/Networking.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@
723723
DEC51B02276AFB35009F3DF4 /* SystemStatus+DropinMustUsePlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEC51B01276AFB34009F3DF4 /* SystemStatus+DropinMustUsePlugin.swift */; };
724724
DEF13C5029629EEA0024A02B /* user-complete-without-data.json in Resources */ = {isa = PBXBuildFile; fileRef = DEF13C4F29629EEA0024A02B /* user-complete-without-data.json */; };
725725
DEF13C562965689F0024A02B /* LeaderboardListMapperTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEF13C552965689F0024A02B /* LeaderboardListMapperTests.swift */; };
726-
DEF13C5829656A610024A02B /* leaderboards-products-without-data.json in Resources */ = {isa = PBXBuildFile; fileRef = DEF13C5729656A600024A02B /* leaderboards-products-without-data.json */; };
726+
DEF13C5A296571150024A02B /* leaderboards-year-without-data.json in Resources */ = {isa = PBXBuildFile; fileRef = DEF13C59296571150024A02B /* leaderboards-year-without-data.json */; };
727727
DEFBA74E29485A7600C35BA9 /* RESTRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEFBA74D29485A7600C35BA9 /* RESTRequest.swift */; };
728728
DEFBA7542949CE6600C35BA9 /* RequestProcessor.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEFBA7532949CE6600C35BA9 /* RequestProcessor.swift */; };
729729
DEFBA7562949D17400C35BA9 /* DefaultRequestAuthenticatorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEFBA7552949D17300C35BA9 /* DefaultRequestAuthenticatorTests.swift */; };
@@ -1518,7 +1518,7 @@
15181518
DEC51B01276AFB34009F3DF4 /* SystemStatus+DropinMustUsePlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SystemStatus+DropinMustUsePlugin.swift"; sourceTree = "<group>"; };
15191519
DEF13C4F29629EEA0024A02B /* user-complete-without-data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "user-complete-without-data.json"; sourceTree = "<group>"; };
15201520
DEF13C552965689F0024A02B /* LeaderboardListMapperTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LeaderboardListMapperTests.swift; sourceTree = "<group>"; };
1521-
DEF13C5729656A600024A02B /* leaderboards-products-without-data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "leaderboards-products-without-data.json"; sourceTree = "<group>"; };
1521+
DEF13C59296571150024A02B /* leaderboards-year-without-data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "leaderboards-year-without-data.json"; sourceTree = "<group>"; };
15221522
DEFBA74D29485A7600C35BA9 /* RESTRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RESTRequest.swift; sourceTree = "<group>"; };
15231523
DEFBA7532949CE6600C35BA9 /* RequestProcessor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RequestProcessor.swift; sourceTree = "<group>"; };
15241524
DEFBA7552949D17300C35BA9 /* DefaultRequestAuthenticatorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DefaultRequestAuthenticatorTests.swift; sourceTree = "<group>"; };
@@ -2166,12 +2166,12 @@
21662166
B524194621AC643900D6FC0A /* device-settings.json */,
21672167
24F98C612502EFF600F49B68 /* feature-flags-load-all.json */,
21682168
268B68FA24C87384007EBF1D /* leaderboards-products.json */,
2169-
DEF13C5729656A600024A02B /* leaderboards-products-without-data.json */,
21702169
E18152C128F85E0A0011A0EC /* iap-products.json */,
21712170
E16C59B628F92782007D55BB /* iap-sample-receipt.json */,
21722171
E16C59B828F927CA007D55BB /* iap-order-create.json */,
21732172
26B2F74624C55A6E0065CCC8 /* leaderboards-year.json */,
21742173
268B68FC24C87E37007EBF1D /* leaderboards-year-alt.json */,
2174+
DEF13C59296571150024A02B /* leaderboards-year-without-data.json */,
21752175
02EF1671292F0D1900D90AD6 /* load-plan-success.json */,
21762176
B505F6D420BEE4E600BB1B69 /* me.json */,
21772177
93D8BBFE226BC1DA00AD2EB3 /* me-settings.json */,
@@ -2944,6 +2944,7 @@
29442944
265BCA02243056E3004E53EE /* categories-all.json in Resources */,
29452945
D8FBFF2422D52815006E3336 /* order-stats-v4-daily.json in Resources */,
29462946
CEC4BF91234E40B5008D9195 /* refund-single.json in Resources */,
2947+
DEF13C5A296571150024A02B /* leaderboards-year-without-data.json in Resources */,
29472948
2683D70E24456DB8002A1589 /* categories-empty.json in Resources */,
29482949
D865CE67278CA225002C8520 /* stripe-payment-intent-succeeded.json in Resources */,
29492950
DE74F2A027E3137F0002FE59 /* setting-analytics.json in Resources */,
@@ -3017,7 +3018,6 @@
30173018
31054718262E2F5E00C5C02B /* wcpay-payment-intent-requires-confirmation.json in Resources */,
30183019
D8FBFF2922D52AFB006E3336 /* order-stats-v4-year.json in Resources */,
30193020
D865CE65278CA202002C8520 /* stripe-payment-intent-canceled.json in Resources */,
3020-
DEF13C5829656A610024A02B /* leaderboards-products-without-data.json in Resources */,
30213021
AED8AEBA272A97B400663FCC /* null-data.json in Resources */,
30223022
02BA23CA22EEF62C009539E7 /* order-stats-v4-wcadmin-activated.json in Resources */,
30233023
31A451D627863A2E00FE81AA /* stripe-account-unknown-status.json in Resources */,

Networking/NetworkingTests/Mapper/LeaderboardListMapperTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ private extension LeaderboardListMapperTests {
4141
/// Returns the LeaderboardListMapper output from `products.json`
4242
///
4343
func mapLeaderboardListResponse() throws -> [Leaderboard] {
44-
return try mapLeaderboardList(from: "leaderboards-products")
44+
return try mapLeaderboardList(from: "leaderboards-year")
4545
}
4646

4747
/// Returns the LeaderboardListMapper output from `leaderboards-products-without-data.json`
4848
///
4949
func mapLeaderboardListResponseWithoutDataEnvelope() throws -> [Leaderboard] {
50-
return try mapLeaderboardList(from: "leaderboards-products-without-data")
50+
return try mapLeaderboardList(from: "leaderboards-year-without-data")
5151
}
5252

5353
struct FileNotFoundError: Error {}

0 commit comments

Comments
 (0)