Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mono0926 committed Apr 26, 2021
1 parent d3c00a4 commit 593056c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 35 deletions.
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
{
"package": "HeliumLogger",
"repositoryURL": "https://github.com/IBM-Swift/HeliumLogger.git",
"repositoryURL": "https://github.com/Kitura/HeliumLogger.git",
"state": {
"branch": null,
"revision": "55fd2f0b70793017acee853c53cfcf8da0bd8d8d",
Expand All @@ -39,7 +39,7 @@
},
{
"package": "HTMLEntities",
"repositoryURL": "https://github.com/IBM-Swift/swift-html-entities.git",
"repositoryURL": "https://github.com/Kitura/swift-html-entities.git",
"state": {
"branch": null,
"revision": "2b14531d0c36dbb7c1c45a4d38db9c2e7898a307",
Expand All @@ -51,8 +51,8 @@
"repositoryURL": "https://github.com/apple/swift-log.git",
"state": {
"branch": null,
"revision": "eba9b323b5ba542c119ff17382a4ce737bcdc0b8",
"version": "0.0.0"
"revision": "5d66f7ba25daf4f94100e7022febf3c75e37a6c7",
"version": "1.4.2"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ let package = Package(
from: "0.4.2"),
.package(url: "https://github.com/ishkawa/APIKit.git",
from: "5.2.0"),
.package(url: "https://github.com/IBM-Swift/HeliumLogger.git",
.package(url: "https://github.com/Kitura/HeliumLogger.git",
from: "1.9.0"),
.package(url: "https://github.com/behrang/YamlSwift.git",
from: "3.4.4"),
.package(url: "https://github.com/IBM-Swift/swift-html-entities.git",
.package(url: "https://github.com/Kitura/swift-html-entities.git",
from: "3.0.14"),
],
targets: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,62 +22,53 @@ class SwiftPackageFileReaderTests: XCTestCase {
"repositoryURL": "https://github.com/ishkawa/APIKit.git",
"state": {
"branch": null,
"revision": "86d51ecee0bc0ebdb53fb69b11a24169a69097ba",
"version": "4.1.0"
"revision": "c8f5320d84c4c34c0fd965da3c7957819a1ccdd4",
"version": "5.2.0"
}
},
{
"package": "HeliumLogger",
"repositoryURL": "https://github.com/IBM-Swift/HeliumLogger.git",
"repositoryURL": "https://github.com/Kitura/HeliumLogger.git",
"state": {
"branch": null,
"revision": "146a36c2a91270e4213fa7d7e8192cd2e55d0ace",
"version": "1.9.0"
"revision": "55fd2f0b70793017acee853c53cfcf8da0bd8d8d",
"version": "1.9.200"
}
},
{
"package": "LoggerAPI",
"repositoryURL": "https://github.com/IBM-Swift/LoggerAPI.git",
"repositoryURL": "https://github.com/Kitura/LoggerAPI.git",
"state": {
"branch": null,
"revision": "3357dd9526cdf9436fa63bb792b669e6efdc43da",
"version": "1.9.0"
}
},
{
"package": "Result",
"repositoryURL": "https://github.com/antitypical/Result.git",
"state": {
"branch": null,
"revision": "2ca499ba456795616fbc471561ff1d963e6ae160",
"version": "4.1.0"
"revision": "e82d34eab3f0b05391082b11ea07d3b70d2f65bb",
"version": "1.9.200"
}
},
{
"package": "swift-argument-parser",
"repositoryURL": "https://github.com/apple/swift-argument-parser.git",
"state": {
"branch": null,
"revision": "92646c0cdbaca076c8d3d0207891785b3379cbff",
"version": "0.3.1"
"revision": "47bd06ebeff8146ecd0020809e186218b46f465f",
"version": "0.4.2"
}
},
{
"package": "HTMLEntities",
"repositoryURL": "https://github.com/IBM-Swift/swift-html-entities.git",
"repositoryURL": "https://github.com/Kitura/swift-html-entities.git",
"state": {
"branch": null,
"revision": "744c094976355aa96ca61b9b60ef0a38e979feb7",
"version": "3.0.14"
"revision": "2b14531d0c36dbb7c1c45a4d38db9c2e7898a307",
"version": "3.0.200"
}
},
{
"package": "swift-log",
"repositoryURL": "https://github.com/apple/swift-log.git",
"state": {
"branch": null,
"revision": "eba9b323b5ba542c119ff17382a4ce737bcdc0b8",
"version": "0.0.0"
"revision": "5d66f7ba25daf4f94100e7022febf3c75e37a6c7",
"version": "1.4.2"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions Tests/LicensePlistTests/Entity/SwiftPackageManagerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ class SwiftPackageManagerTests: XCTestCase {
let packages = SwiftPackage.loadPackages(content)

XCTAssertFalse(packages.isEmpty)
XCTAssertEqual(packages.count, 8)
XCTAssertEqual(packages.count, 7)

let packageFirst = packages.first!
XCTAssertEqual(packageFirst, SwiftPackage(package: "APIKit",
repositoryURL: "https://github.com/ishkawa/APIKit.git",
state: SwiftPackage.State(branch: nil, revision: "86d51ecee0bc0ebdb53fb69b11a24169a69097ba", version: "4.1.0")))
state: SwiftPackage.State(branch: nil, revision: "c8f5320d84c4c34c0fd965da3c7957819a1ccdd4", version: "5.2.0")))
let packageLast = packages.last!
XCTAssertEqual(packageLast, SwiftPackage(package: "Yaml",
repositoryURL: "https://github.com/behrang/YamlSwift.git",
Expand Down
6 changes: 3 additions & 3 deletions Tests/LicensePlistTests/Resources/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
{
"package": "HeliumLogger",
"repositoryURL": "https://github.com/IBM-Swift/HeliumLogger.git",
"repositoryURL": "https://github.com/Kitura/HeliumLogger.git",
"state": {
"branch": null,
"revision": "779865e83149a59894b14950aa83f70b7e81bc27",
Expand All @@ -30,7 +30,7 @@
},
{
"package": "LoggerAPI",
"repositoryURL": "https://github.com/IBM-Swift/LoggerAPI.git",
"repositoryURL": "https://github.com/Kitura/LoggerAPI.git",
"state": {
"branch": null,
"revision": "e29073bb7cecf3673e56bcb16180e8fd0cb091f6",
Expand All @@ -57,7 +57,7 @@
},
{
"package": "HTMLEntities",
"repositoryURL": "https://github.com/IBM-Swift/swift-html-entities.git",
"repositoryURL": "https://github.com/Kitura/swift-html-entities.git",
"state": {
"branch": null,
"revision": "3b778b3ab061684db024eaf38c576887b42918aa",
Expand Down

0 comments on commit 593056c

Please sign in to comment.