Update files following swiftformat upgrade
This commit is contained in:
committed by
Stefan Ceriu
parent
2bb26efbe1
commit
04053ae69b
@@ -5,9 +5,8 @@
|
||||
// Please see LICENSE files in the repository root for full details.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
|
||||
@testable import ElementX
|
||||
import XCTest
|
||||
|
||||
@MainActor
|
||||
class TemplateScreenViewModelTests: XCTestCase {
|
||||
@@ -26,7 +25,7 @@ class TemplateScreenViewModelTests: XCTestCase {
|
||||
XCTAssertEqual(context.viewState.counter, 0)
|
||||
}
|
||||
|
||||
func testTextField() async throws {
|
||||
func testTextField() {
|
||||
context.composerText = "123"
|
||||
context.send(viewAction: .textChanged)
|
||||
XCTAssertEqual(context.composerText, "123")
|
||||
|
||||
@@ -5,7 +5,9 @@ import Foundation
|
||||
struct OutdatedPackages: ParsableCommand {
|
||||
static let configuration = CommandConfiguration(abstract: "A tool to check outdated package dependencies. Please make sure you have already run setup-project before using this tool.")
|
||||
|
||||
private var projectSwiftPMDirectoryURL: URL { .projectDirectory.appendingPathComponent("ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm") }
|
||||
private var projectSwiftPMDirectoryURL: URL {
|
||||
.projectDirectory.appendingPathComponent("ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm")
|
||||
}
|
||||
|
||||
func run() throws {
|
||||
try checkToolsDependencies()
|
||||
|
||||
@@ -2,7 +2,15 @@ import ArgumentParser
|
||||
import Foundation
|
||||
|
||||
extension URL {
|
||||
static var projectDirectory: URL { URL(fileURLWithPath: FileManager.default.currentDirectoryPath) }
|
||||
static var parentDirectory: URL { .projectDirectory.deletingLastPathComponent() }
|
||||
static var sdkDirectory: URL { .parentDirectory.appendingPathComponent("matrix-rust-sdk") }
|
||||
static var projectDirectory: URL {
|
||||
URL(fileURLWithPath: FileManager.default.currentDirectoryPath)
|
||||
}
|
||||
|
||||
static var parentDirectory: URL {
|
||||
.projectDirectory.deletingLastPathComponent()
|
||||
}
|
||||
|
||||
static var sdkDirectory: URL {
|
||||
.parentDirectory.appendingPathComponent("matrix-rust-sdk")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user