diff --git a/Tests/FeedbackKitTests/FeedbackKitTests.swift b/Tests/FeedbackKitTests/FeedbackKitTests.swift index 6929268..9add1e6 100644 --- a/Tests/FeedbackKitTests/FeedbackKitTests.swift +++ b/Tests/FeedbackKitTests/FeedbackKitTests.swift @@ -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) } }