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 241
241
242
242
/// Test how URL conversion behaves if there are spaces in the path.
243
243
func testURLConversion( ) {
244
- /// Spaces in the string only convert to URL when using URL(fileURLWithPath: ).
245
244
let fakeURLWithSpace = URL ( string: " file:///fakeDir1/fake%20Dir2/fakeFile " ) !
246
245
247
246
XCTAssertEqual ( fakeURLWithSpace, URL ( string: fakeURLWithSpace. absoluteString) )
248
247
XCTAssertEqual ( fakeURLWithSpace, URL ( fileURLWithPath: fakeURLWithSpace. path) )
249
- XCTAssertNil ( URL ( string: fakeURLWithSpace. path) )
250
248
251
249
/// Strings without spaces should work fine either way.
252
250
let fakeURLWithoutSpace = URL ( string: " fakeDir1/fakeDir2/fakeFile " ) !
Original file line number Diff line number Diff line change @@ -82,14 +82,6 @@ - (void)testNonStringLinkInMessage {
82
82
XCTAssertNil (url);
83
83
}
84
84
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
-
93
85
- (void )testValidURLStringLinkInMessage {
94
86
NSMutableDictionary *notification =
95
87
[FIRMessagingTestNotificationUtilities createBasicNotificationWithUniqueMessageID ];
You can’t perform that action at this time.
0 commit comments