Update Nimble to compile for tvOS

This commit is contained in:
Daniel Saidi 2020-12-07 18:08:41 +01:00
parent 4be491079f
commit 501c8bcd29
5 changed files with 29 additions and 8 deletions

View File

@ -1,13 +1,31 @@
{
"object": {
"pins": [
{
"package": "CwlCatchException",
"repositoryURL": "https://github.com/mattgallagher/CwlCatchException.git",
"state": {
"branch": null,
"revision": "f809deb30dc5c9d9b78c872e553261a61177721a",
"version": "2.0.0"
}
},
{
"package": "CwlPreconditionTesting",
"repositoryURL": "https://github.com/mattgallagher/CwlPreconditionTesting.git",
"state": {
"branch": null,
"revision": "02b7a39a99c4da27abe03cab2053a9034379639f",
"version": "2.0.0"
}
},
{
"package": "Mockery",
"repositoryURL": "https://github.com/danielsaidi/Mockery.git",
"state": {
"branch": null,
"revision": "d196e0021323853996cb46a526d9c58696a16daa",
"version": "0.4.0"
"revision": "c72143b88863ca4852993a448aadbe9def3f8b30",
"version": "0.6.1"
}
},
{
@ -15,8 +33,8 @@
"repositoryURL": "https://github.com/Quick/Nimble.git",
"state": {
"branch": null,
"revision": "2b1809051b4a65c1d7f5233331daa24572cd7fca",
"version": "8.1.1"
"revision": "e491a6731307bb23783bf664d003be9b2fa59ab5",
"version": "9.0.0"
}
},
{

View File

@ -17,7 +17,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/Quick/Quick.git", .upToNextMajor(from: "3.0.0")),
.package(url: "https://github.com/Quick/Nimble.git", .upToNextMajor(from: "8.0.0")),
.package(url: "https://github.com/Quick/Nimble.git", .upToNextMajor(from: "9.0.0")),
.package(url: "https://github.com/danielsaidi/Mockery.git", .upToNextMajor(from: "0.4.0"))
],
targets: [

View File

@ -1,17 +1,19 @@
//
// BiometricsAuthenticationServiceTests.swift
// BiometricAuthenticationServiceTests.swift
// SwiftKitTests
//
// Created by Daniel Saidi on 2020-04-28.
// Copyright © 2020 Daniel Saidi. All rights reserved.
//
#if os(iOS) || os(macOS)
import Quick
import Nimble
import Mockery
@testable import SwiftKit
class BiometricsAuthenticationServiceTests: QuickSpec {
@available(iOS 11.0, OSX 10.12.2, *)
class BiometricAuthenticationServiceTests: QuickSpec {
override func spec() {
@ -114,3 +116,4 @@ private class TestClass: BiometricAuthenticationService, Mockable {
}
private enum TestError: Error { case failure }
#endif

View File

@ -25,7 +25,7 @@ class WorldCoordinateTests: QuickSpec {
it("has valid coordinate") {
expect(validate(.manhattan, 40.7590615, -73.969231)).to(beTrue())
expect(validate(.newYork, 40.7033127, -73.979681)).to(beTrue())
expect(validate(.sanFransisco, 37.7796828, -122.4000062)).to(beTrue())
expect(validate(.sanFrancisco, 37.7796828, -122.4000062)).to(beTrue())
expect(validate(.tokyo, 35.673, 139.710)).to(beTrue())
}
}