Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif committed Oct 2, 2024
1 parent ff427ef commit 4e14f36
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Tests/FeedbackKitTests/FeedbackKitTests.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
import XCTest
@testable import FeedbackKit

@MainActor
final class FeedbackKitTests: XCTestCase {
func testExample() throws {
let store = FeedbackStore()


let feedback = Feedback(type: .comment, title: "Cool", description: "Feedback", state: .open)

store.set(feedback: feedback)

let storedFeedback = try XCTUnwrap(store.get(id: feedback.id))

XCTAssertEqual(storedFeedback.type, storedFeedback.type)
XCTAssertEqual(storedFeedback.title, storedFeedback.title)
XCTAssertEqual(storedFeedback.description, storedFeedback.description)
XCTAssertEqual(storedFeedback.state, storedFeedback.state)
}
}

0 comments on commit 4e14f36

Please sign in to comment.