diff --git a/.gitignore b/.gitignore index 19811125..f639d1bd 100644 --- a/.gitignore +++ b/.gitignore @@ -94,3 +94,6 @@ fastlane/test_output # https://github.com/johnno1962/injectionforxcode iOSInjectionProject/ +.DS_Store +.swiftpm/ +.swiftpm/* diff --git a/Package.swift b/Package.swift new file mode 100644 index 00000000..7b4c7e43 --- /dev/null +++ b/Package.swift @@ -0,0 +1,43 @@ +// swift-tools-version:5.2 +// +// Copyright © 2020 Rajdeep Kwatra. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +import PackageDescription + +let package = Package( + name: "Proton", + platforms: [ + .iOS(.v11), + ], + products: [ + .library(name: "Proton", targets: ["Proton"]) + ], + dependencies: [ + .package(name: "SnapshotTesting", url: "https://github.com/pointfreeco/swift-snapshot-testing.git", .branch("master")) + ], + targets: [ + .target( + name: "Proton", + dependencies: [], + path: "Proton/Sources" + ), + .testTarget( + name: "ProtonTests", + dependencies: ["Proton", "SnapshotTesting"], + path: "Proton/Tests" + ) + ] +) diff --git a/Proton/Tests/Core/RichTextViewContextTests.swift b/Proton/Tests/Core/RichTextViewContextTests.swift index a3b88f8d..eaff96b7 100644 --- a/Proton/Tests/Core/RichTextViewContextTests.swift +++ b/Proton/Tests/Core/RichTextViewContextTests.swift @@ -171,7 +171,8 @@ class RichTextViewContextTests: XCTestCase { testExpectation.fulfill() } - _ = context.textViewDidChange(textView) + context.textViewDidChange(textView) + waitForExpectations(timeout: 1.0) }