File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ + (void)initialize {
5454// /--------------------------------------
5555
5656+ (void )setApplicationId : (NSString *)applicationId clientKey : (NSString *)clientKey {
57+ PFParameterAssert (clientKey.length , @" `clientKey` should not be nil." );
5758 currentParseConfiguration_.applicationId = applicationId;
5859 currentParseConfiguration_.clientKey = clientKey;
5960 currentParseConfiguration_.server = [PFInternalUtils parseServerURLString ]; // TODO: (nlutsenko) Clean this up after tests are updated.
Original file line number Diff line number Diff line change @@ -50,10 +50,7 @@ - (void)testInitializeWithNilApplicationIdShouldThrowException {
5050 NSString *yolo = nil ;
5151 PFAssertThrowsInvalidArgumentException ([Parse setApplicationId: yolo clientKey: yolo]);
5252 PFAssertThrowsInvalidArgumentException ([Parse setApplicationId: yolo clientKey: @" a" ]);
53- }
54-
55- - (void )testInitializeWithoutClientKeyNoThrow {
56- XCTAssertNoThrow ([Parse setApplicationId: @" a" clientKey: nil ]);
53+ PFAssertThrowsInvalidArgumentException ([Parse setApplicationId: @" a" clientKey: yolo]);
5754}
5855
5956@end
You can’t perform that action at this time.
0 commit comments