From 3b20d44b6fe5dbf07701fc5a0accc84b27560408 Mon Sep 17 00:00:00 2001 From: Bruno Muniz Azevedo Filho <bruno@elixxir.io> Date: Tue, 29 Nov 2022 16:03:11 -0300 Subject: [PATCH] fix identation of invitation tests --- .../General/InvitationTests.swift | 60 +++++++++---------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/Tests/AppFeatureTests/General/InvitationTests.swift b/Tests/AppFeatureTests/General/InvitationTests.swift index 220f92a8..c20d1a1c 100644 --- a/Tests/AppFeatureTests/General/InvitationTests.swift +++ b/Tests/AppFeatureTests/General/InvitationTests.swift @@ -1,35 +1,35 @@ import XCTest -@testable import App +@testable import AppFeature final class AppDelegateTests: XCTestCase { - func test_invitationUniversalLink() { - XCTAssertNil(getUsernameFromInvitationDeepLink( - URL(string: "https://elixxir.io/connecting?username=some")! - )) - - XCTAssertNil(getUsernameFromInvitationDeepLink( - URL(string: "http://elixxir.io/connect?username=some")! - )) - - XCTAssertNil(getUsernameFromInvitationDeepLink( - URL(string: "https://io.elixxir/connect?username=some")! - )) - - XCTAssertEqual(getUsernameFromInvitationDeepLink( - URL(string: "https://elixxir.io/connect?username=brad")! - ), "brad") - - XCTAssertNil(getUsernameFromInvitationDeepLink( - URL(string: "https://elixxir.io/connect?password=value")! - )) - - XCTAssertNil(getUsernameFromInvitationDeepLink( - URL(string: "https://elixxir.io/connect?usernamer=some")! - )) - - XCTAssertNotEqual(getUsernameFromInvitationDeepLink( - URL(string: "https://elixxir.io/connect?username=anderson")! - ), "silva") - } + func test_invitationUniversalLink() { + XCTAssertNil(getUsernameFromInvitationDeepLink( + URL(string: "https://elixxir.io/connecting?username=some")! + )) + + XCTAssertNil(getUsernameFromInvitationDeepLink( + URL(string: "http://elixxir.io/connect?username=some")! + )) + + XCTAssertNil(getUsernameFromInvitationDeepLink( + URL(string: "https://io.elixxir/connect?username=some")! + )) + + XCTAssertEqual(getUsernameFromInvitationDeepLink( + URL(string: "https://elixxir.io/connect?username=brad")! + ), "brad") + + XCTAssertNil(getUsernameFromInvitationDeepLink( + URL(string: "https://elixxir.io/connect?password=value")! + )) + + XCTAssertNil(getUsernameFromInvitationDeepLink( + URL(string: "https://elixxir.io/connect?usernamer=some")! + )) + + XCTAssertNotEqual(getUsernameFromInvitationDeepLink( + URL(string: "https://elixxir.io/connect?username=anderson")! + ), "silva") + } } -- GitLab