Skip to content

Commit

Permalink
Compare status code
Browse files Browse the repository at this point in the history
  • Loading branch information
ashdavies committed Jul 15, 2024
1 parent 53e24e8 commit 12a06a5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import io.ktor.client.request.put
import io.ktor.client.request.setBody
import io.ktor.http.ContentType
import io.ktor.http.HttpHeaders
import io.ktor.http.HttpStatusCode
import io.ktor.http.contentType
import io.ktor.serialization.kotlinx.json.json
import io.ktor.server.application.Application
Expand Down Expand Up @@ -77,7 +78,7 @@ internal class ApplicationTest {
contentType(ContentType.Application.Json)
}

assertEquals(200, response.status.value)
assertEquals(HttpStatusCode.OK, response.status)
}
}

Expand Down

0 comments on commit 12a06a5

Please sign in to comment.