Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
petrpavlik committed Oct 25, 2024
1 parent 5f403bf commit f62d53d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Tests/AppTests/AppTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,6 @@ final class AppTests: XCTestCase {
var isSubscribedToNewsletter: Bool?
}

try await app.test(.PATCH, "profile", headers: authHeader, beforeRequest: { request async throws in
try request.content.encode(PatchProfileBody(isSubscribedToNewsletter: true))
}, afterResponse: { res in
expect(res.status) == .ok
let profile = try res.content.decode(ProfileDTO.self)
expect(profile.email) == Environment.get("TEST_FIREBASE_USER_EMAIL")
expect(profile.isSubscribedToNewsletter) == true
})

try await app.test(.DELETE, "profile", headers: authHeader, afterResponse: { res async throws in
expect(res.status) == .noContent
})
Expand Down

0 comments on commit f62d53d

Please sign in to comment.