File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed
FirebaseMLModelDownloader/Tests/Unit
FirebaseMessaging/Tests/UnitTests Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change 241241
242242 /// Test how URL conversion behaves if there are spaces in the path.
243243 func testURLConversion( ) {
244- /// Spaces in the string only convert to URL when using URL(fileURLWithPath: ).
245244 let fakeURLWithSpace = URL ( string: " file:///fakeDir1/fake%20Dir2/fakeFile " ) !
246245
247246 XCTAssertEqual ( fakeURLWithSpace, URL ( string: fakeURLWithSpace. absoluteString) )
248247 XCTAssertEqual ( fakeURLWithSpace, URL ( fileURLWithPath: fakeURLWithSpace. path) )
249- XCTAssertNil ( URL ( string: fakeURLWithSpace. path) )
250248
251249 /// Strings without spaces should work fine either way.
252250 let fakeURLWithoutSpace = URL ( string: " fakeDir1/fakeDir2/fakeFile " ) !
Original file line number Diff line number Diff line change @@ -82,14 +82,6 @@ - (void)testNonStringLinkInMessage {
8282 XCTAssertNil (url);
8383}
8484
85- - (void )testInvalidURLStringLinkInMessage {
86- NSMutableDictionary *notification =
87- [FIRMessagingTestNotificationUtilities createBasicNotificationWithUniqueMessageID ];
88- notification[kFIRMessagingMessageLinkKey ] = @" This is not a valid url string" ;
89- NSURL *url = [_messaging linkURLFromMessage: notification];
90- XCTAssertNil (url);
91- }
92-
9385- (void )testValidURLStringLinkInMessage {
9486 NSMutableDictionary *notification =
9587 [FIRMessagingTestNotificationUtilities createBasicNotificationWithUniqueMessageID ];
You can’t perform that action at this time.
0 commit comments