Update Nimble to compile for tvOS
This commit is contained in:
parent
4be491079f
commit
501c8bcd29
Binary file not shown.
|
@ -1,13 +1,31 @@
|
||||||
{
|
{
|
||||||
"object": {
|
"object": {
|
||||||
"pins": [
|
"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",
|
"package": "Mockery",
|
||||||
"repositoryURL": "https://github.com/danielsaidi/Mockery.git",
|
"repositoryURL": "https://github.com/danielsaidi/Mockery.git",
|
||||||
"state": {
|
"state": {
|
||||||
"branch": null,
|
"branch": null,
|
||||||
"revision": "d196e0021323853996cb46a526d9c58696a16daa",
|
"revision": "c72143b88863ca4852993a448aadbe9def3f8b30",
|
||||||
"version": "0.4.0"
|
"version": "0.6.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -15,8 +33,8 @@
|
||||||
"repositoryURL": "https://github.com/Quick/Nimble.git",
|
"repositoryURL": "https://github.com/Quick/Nimble.git",
|
||||||
"state": {
|
"state": {
|
||||||
"branch": null,
|
"branch": null,
|
||||||
"revision": "2b1809051b4a65c1d7f5233331daa24572cd7fca",
|
"revision": "e491a6731307bb23783bf664d003be9b2fa59ab5",
|
||||||
"version": "8.1.1"
|
"version": "9.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,7 +17,7 @@ let package = Package(
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(url: "https://github.com/Quick/Quick.git", .upToNextMajor(from: "3.0.0")),
|
.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"))
|
.package(url: "https://github.com/danielsaidi/Mockery.git", .upToNextMajor(from: "0.4.0"))
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
|
|
|
@ -1,17 +1,19 @@
|
||||||
//
|
//
|
||||||
// BiometricsAuthenticationServiceTests.swift
|
// BiometricAuthenticationServiceTests.swift
|
||||||
// SwiftKitTests
|
// SwiftKitTests
|
||||||
//
|
//
|
||||||
// Created by Daniel Saidi on 2020-04-28.
|
// Created by Daniel Saidi on 2020-04-28.
|
||||||
// Copyright © 2020 Daniel Saidi. All rights reserved.
|
// Copyright © 2020 Daniel Saidi. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#if os(iOS) || os(macOS)
|
||||||
import Quick
|
import Quick
|
||||||
import Nimble
|
import Nimble
|
||||||
import Mockery
|
import Mockery
|
||||||
@testable import SwiftKit
|
@testable import SwiftKit
|
||||||
|
|
||||||
class BiometricsAuthenticationServiceTests: QuickSpec {
|
@available(iOS 11.0, OSX 10.12.2, *)
|
||||||
|
class BiometricAuthenticationServiceTests: QuickSpec {
|
||||||
|
|
||||||
override func spec() {
|
override func spec() {
|
||||||
|
|
||||||
|
@ -114,3 +116,4 @@ private class TestClass: BiometricAuthenticationService, Mockable {
|
||||||
}
|
}
|
||||||
|
|
||||||
private enum TestError: Error { case failure }
|
private enum TestError: Error { case failure }
|
||||||
|
#endif
|
||||||
|
|
|
@ -25,7 +25,7 @@ class WorldCoordinateTests: QuickSpec {
|
||||||
it("has valid coordinate") {
|
it("has valid coordinate") {
|
||||||
expect(validate(.manhattan, 40.7590615, -73.969231)).to(beTrue())
|
expect(validate(.manhattan, 40.7590615, -73.969231)).to(beTrue())
|
||||||
expect(validate(.newYork, 40.7033127, -73.979681)).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())
|
expect(validate(.tokyo, 35.673, 139.710)).to(beTrue())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue