Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew McKnight committed Sep 27, 2024
1 parent a93ab05 commit f5789ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OctoKit/Repositories.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ open class Repository: Codable {
case lastPush = "pushed_at"
case stargazersCount = "stargazers_count"
case hasWiki = "has_wiki"
case language = "language"
case language
case organization
case parent
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/OctoKitTests/RepositoryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,14 @@ class RepositoryTests: XCTestCase {
XCTAssertEqual(subject.size, 132)
XCTAssertTrue(try XCTUnwrap(subject.hasWiki))
XCTAssertEqual(subject.language, "Ruby")

let org = try XCTUnwrap(subject.organization)
XCTAssertEqual(org.login, "github")
XCTAssertEqual(org.id, 1)
XCTAssertEqual(org.url, "https://api.github.com/orgs/github")
XCTAssertEqual(org.type, "Organization")
}

func testUserParsingForkedRepository() {
let subject = Helper.codableFromFile("forked_repo", type: Repository.self)
XCTAssertEqual(subject.owner.login, "mietzmithut")
Expand Down

0 comments on commit f5789ed

Please sign in to comment.