Skip to content

Commit

Permalink
Add passes bundle test
Browse files Browse the repository at this point in the history
  • Loading branch information
fpseverino committed Aug 5, 2024
1 parent 72c2604 commit 455c101
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Tests/PassesTests/PassesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,17 @@ final class PassesTests: XCTestCase {
let data = try await passesService.generatePassContent(for: pass, on: app.db)
XCTAssertNotNil(data)
}

func testPassesGeneration() async throws {
let passData1 = PassData(title: "Test Pass 1")
try await passData1.create(on: app.db)
let pass1 = try await passData1.$pass.get(on: app.db)

let passData2 = PassData(title: "Test Pass 2")
try await passData2.create(on: app.db)
let pass2 = try await passData2.$pass.get(on: app.db)

let data = try await passesService.generatePassesContent(for: [pass1, pass2], on: app.db)
XCTAssertNotNil(data)
}
}

0 comments on commit 455c101

Please sign in to comment.