From f5789edee816764d5a9e2c501c497a35de2ad8c6 Mon Sep 17 00:00:00 2001 From: Andrew McKnight Date: Fri, 27 Sep 2024 15:52:59 -0800 Subject: [PATCH] fix lint issues --- OctoKit/Repositories.swift | 2 +- Tests/OctoKitTests/RepositoryTests.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OctoKit/Repositories.swift b/OctoKit/Repositories.swift index d782476..3aa87c3 100644 --- a/OctoKit/Repositories.swift +++ b/OctoKit/Repositories.swift @@ -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 } diff --git a/Tests/OctoKitTests/RepositoryTests.swift b/Tests/OctoKitTests/RepositoryTests.swift index c0ecb71..28d2fb2 100644 --- a/Tests/OctoKitTests/RepositoryTests.swift +++ b/Tests/OctoKitTests/RepositoryTests.swift @@ -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")