Skip to content

Commit

Permalink
Rename and fix test_save_scoreDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure committed Nov 16, 2023
1 parent c695824 commit 47d9213
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Tests/AppTests/PackageTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,13 @@ final class PackageTests: AppTestCase {
}
}

func test_save_scoreInput() async throws {
func test_save_scoreDetails() async throws {
let pkg = Package(url: "1")
pkg.scoreDetails = .mock
let scoreDetails = Score.Details.mock
pkg.scoreDetails = scoreDetails
try await pkg.save(on: app.db)
let readBack = try await XCTUnwrapAsync(try await Package.query(on: app.db).first())
XCTAssertEqual(readBack.scoreDetails, .mock)
XCTAssertEqual(readBack.scoreDetails, scoreDetails)
}

func test_encode() throws {
Expand Down

0 comments on commit 47d9213

Please sign in to comment.