Skip to content

Commit

Permalink
Update docs/advanced/testing.es.md
Browse files Browse the repository at this point in the history
Co-authored-by: Ale Mohamad ⌘ <[email protected]>
  • Loading branch information
TheHandyOwl and alemohamad authored Jan 29, 2025
1 parent c73dff7 commit a643eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced/testing.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func helloWorld() async throws {

Los dos primeros parámetros son el método HTTP y la URL a solicitar. El cierre final acepta la respuesta HTTP que puedes verificar usando la macro `#expect`.

Para solicitudes más complejas, puedes proporcionar un cierre `beforeRequest` para modificar los encabezados o codificar el contenido. La [API de contenido](../basics/content.md) de Vapor está disponible tanto en la solicitud de prueba como en la respuesta.
Para solicitudes más complejas, puedes proporcionar un closure `beforeRequest` para modificar los encabezados o codificar el contenido. La [API de contenido](../basics/content.md) de Vapor está disponible tanto en la solicitud de prueba como en la respuesta.

```swift
let newDTO = TodoDTO(id: nil, title: "test")
Expand Down

0 comments on commit a643eee

Please sign in to comment.