chore(i18n,curriculum): update translations (#44346)

This commit is contained in:
camperbot
2021-12-03 01:21:50 -08:00
committed by GitHub
parent 6af8ee6528
commit cd4d53f4c0
10 changed files with 90 additions and 74 deletions

View File

@@ -1,6 +1,6 @@
---
id: 587d824c367417b2b2512c4d
title: Compare the Properties of Two Elements
title: Compara las propiedades de dos elementos
challengeType: 2
forumTopicId: 301588
dashedName: compare-the-properties-of-two-elements
@@ -8,15 +8,15 @@ dashedName: compare-the-properties-of-two-elements
# --description--
As a reminder, this project is being built upon the following starter project on [Replit](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), or cloned from [GitHub](https://github.com/freeCodeCamp/boilerplate-mochachai/).
Como recordatorio, este proyecto está siendo construido con base en el siguiente proyecto inicial [Repl.it](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), o clonado desde [GitHub](https://github.com/freeCodeCamp/boilerplate-mochachai/).
# --instructions--
Within `tests/1_unit-tests.js` under the test labelled `#8` in the `Comparisons` suite, change each `assert` to either `assert.isAbove` or `assert.isAtMost` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts.
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#8` en `Comparisons` suite, cambiar cada `assert` a `assert.isAbove` o `assert.isAtMost` para que el test sea superado (debe evaluarse a `true`). No modifiques los argumentos pasados a los verificadores.
# --hints--
All tests should pass.
Todas las pruebas deben pasar.
```js
(getUserInput) =>
@@ -30,7 +30,7 @@ All tests should pass.
);
```
You should choose the correct method for the first assertion - `isAbove` vs. `isAtMost`.
Debe elegir el método correcto para la primera aserción - `isAbove` vs. `isAtMost`.
```js
(getUserInput) =>
@@ -48,7 +48,7 @@ You should choose the correct method for the first assertion - `isAbove` vs. `is
);
```
You should choose the correct method for the second assertion - `isAbove` vs. `isAtMost`.
Debe elegir el método correcto para la segunda aserción - `isAbove` vs. `isAtMost`.
```js
(getUserInput) =>
@@ -62,7 +62,7 @@ You should choose the correct method for the second assertion - `isAbove` vs. `i
);
```
You should choose the correct method for the third assertion - `isAbove` vs. `isAtMost`.
Debe elegir el método correcto para la tercera aserción - `isAbove` vs. `isAtMost`.
```js
(getUserInput) =>
@@ -80,7 +80,7 @@ You should choose the correct method for the third assertion - `isAbove` vs. `is
);
```
You should choose the correct method for the fourth assertion - `isAbove` vs. `isAtMost`.
Debe elegir el método correcto para la cuarta aserción - `isAbove` vs. `isAtMost`.
```js
(getUserInput) =>

View File

@@ -1,6 +1,6 @@
---
id: 587d824a367417b2b2512c46
title: Learn How JavaScript Assertions Work
title: Aprende cómo funcionan las aserciones de JavaScript
challengeType: 2
forumTopicId: 301589
dashedName: learn-how-javascript-assertions-work
@@ -8,21 +8,21 @@ dashedName: learn-how-javascript-assertions-work
# --description--
Working on these challenges will involve you writing your code using one of the following methods:
Trabajar en estos desafíos implica escribir tu código usando uno de los siguientes métodos:
- Clone [this GitHub repo](https://github.com/freeCodeCamp/boilerplate-mochachai/) and complete these challenges locally.
- Use [our Replit starter project](https://replit.com/github/freeCodeCamp/boilerplate-mochachai) to complete these challenges.
- Use a site builder of your choice to complete the project. Be sure to incorporate all the files from our GitHub repo.
- Clona [este repositorio de Github](https://github.com/freeCodeCamp/boilerplate-mochachai/) y completa estos desafíos localmente.
- Use [nuetro proyecto inicial de Replit](https://replit.com/github/freeCodeCamp/boilerplate-mochachai) para completar estos retos.
- Utiliza un constructor de sitios web de tu elección para completar el proyecto. Asegúrate de incorporar todos los archivos de nuestro repositorio de GitHub.
When you are done, make sure a working demo of your project is hosted somewhere public. Then submit the URL to it in the `Solution Link` field.
Cuando hayas terminado, asegúrate de que un demo funcional de tu proyecto esté alojado en algún lugar público. Luego, envía la URL en el campo `Solution Link`.
# --instructions--
Within `tests/1_unit-tests.js` under the test labelled `#1` in the `Basic Assertions` suite, change each `assert` to either `assert.isNull` or `assert.isNotNull` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts.
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#1` en la `Basic Assertions`, cambiar cada `assert` a `assert.isNull` o `assert.isNotNull` para que la prueba sea superada (debe evaluar a `true`). No modifiques los argumentos pasados a los verificadores.
# --hints--
All tests should pass.
Todas las pruebas deben pasar.
```js
(getUserInput) =>
@@ -36,7 +36,7 @@ All tests should pass.
);
```
You should choose the correct method for the first assertion - `isNull` vs. `isNotNull`.
Debe elegir el método correcto para la primera aserción - `isNull` vs. `isNotNull`.
```js
(getUserInput) =>
@@ -50,7 +50,7 @@ You should choose the correct method for the first assertion - `isNull` vs. `isN
);
```
You should choose the correct method for the second assertion - `isNull` vs. `isNotNull`.
Debe elegir el método correcto para la segunda aserción - `isNull` vs. `isNotNull`.
```js
(getUserInput) =>

View File

@@ -1,6 +1,6 @@
---
id: 587d824f367417b2b2512c5a
title: Run Functional Tests on an API Response using Chai-HTTP III - PUT method
title: Ejecutar pruebas funcionales en la respuesta de un API usando Chai-HTTP III - método PUT
challengeType: 2
forumTopicId: 301590
dashedName: run-functional-tests-on-an-api-response-using-chai-http-iii---put-method
@@ -8,31 +8,39 @@ dashedName: run-functional-tests-on-an-api-response-using-chai-http-iii---put-me
# --description--
As a reminder, this project is being built upon the following starter project on [Replit](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), or cloned from [GitHub](https://github.com/freeCodeCamp/boilerplate-mochachai/).
Como recordatorio, este proyecto está siendo construido con base en el siguiente proyecto inicial [Repl.it](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), o clonado desde [GitHub](https://github.com/freeCodeCamp/boilerplate-mochachai/).
In the next example we'll see how to send data in a request payload (body). We are going to test a PUT request. The `'/travellers'` endpoint accepts a JSON object taking the structure:
Cuando se prueba una solicitud `PUT`, a menudo enviarás datos junto con ella. Los datos que incluye con su solicitud `PUT` se llama el body de la petición.
Para enviar una petición `PUT` y un objeto JSON al endpoint `'/travellers'`, puedes usar el complemento `chai-http`, con los métodos `put` y `send`:
```js
chai
.request(server)
.put('/travellers')
.send({
"surname": [last name of a traveller of the past]
})
...
```
Y la ruta responde con:
```json
{
"surname": [last name of a traveller of the past]
"name": [first name],
"surname": [last name],
"dates": [birth - death years]
}
```
The route responds with :
```json
{
"name": [first name], "surname": [last name], "dates": [birth - death years]
}
```
See the server code for more details.
Vea el código del servidor para las diferentes respuestas del endpoint `'/travellers'`.
# --instructions--
Within `tests/2_functional-tests.js`, alter the `'send {surname: "Colombo"}'` test (`// #3`):
Dentro de `tests/2_functional-tests.js`, arregla el test `'Send {surname: "Colombo"}'` (`// #3`), use los métodos `put` y `send` para testear el endpoint `'/travellers'`.
Send the following JSON response as a payload:
Enviar el siguiente objeto JSON con su solicitud PUT:
```json
{
@@ -40,18 +48,18 @@ Send the following JSON response as a payload:
}
```
Check for the following, within the `request.end` callback:
Compruebe lo siguiente dentro del callback `request.end`:
1. `status`
2. `type`
3. `body.name`
4. `body.surname`
1. El `status` debe ser `200`
2. El `type` debe ser `application/json`
3. El `body.name` debe ser `Cristoforo`
4. El `body.surname` debe ser `Colombo`
Follow the assertion order above - we rely on it. Be sure to remove `assert.fail()`, once complete.
Sigue el orden de las aserciones de arriba - nos basamos en esto. También, asegúrese de eliminar `assert.fail()` una vez completado.
# --hints--
All tests should pass.
Todas las pruebas deben pasar.
```js
(getUserInput) =>
@@ -65,7 +73,7 @@ All tests should pass.
);
```
You should test for 'res.status' to be 200.
Debes comprobar que `res.status` sea 200.
```js
(getUserInput) =>
@@ -81,7 +89,7 @@ You should test for 'res.status' to be 200.
);
```
You should test for 'res.type' to be 'application/json'.
Debes comprobar que `res.type` sea `'application/json'`.
```js
(getUserInput) =>
@@ -97,7 +105,7 @@ You should test for 'res.type' to be 'application/json'.
);
```
You should test for 'res.body.name' to be 'Cristoforo'.
Debes comprobar que `res.body.name` sea `'Cristoforo'`.
```js
(getUserInput) =>
@@ -113,7 +121,7 @@ You should test for 'res.body.name' to be 'Cristoforo'.
);
```
You should test for 'res.body.surname' to be 'Colombo'.
Debes comprobar que `res.body.surname` sea `'Colombo'`.
```js
(getUserInput) =>

View File

@@ -1,6 +1,6 @@
---
id: 587d824f367417b2b2512c5b
title: Run Functional Tests on an API Response using Chai-HTTP IV - PUT method
title: Ejecutar pruebas funcionales en la respuesta de un API usando Chai-HTTP IV - método PUT
challengeType: 2
forumTopicId: 301591
dashedName: run-functional-tests-on-an-api-response-using-chai-http-iv---put-method
@@ -8,15 +8,17 @@ dashedName: run-functional-tests-on-an-api-response-using-chai-http-iv---put-met
# --description--
As a reminder, this project is being built upon the following starter project on [Replit](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), or cloned from [GitHub](https://github.com/freeCodeCamp/boilerplate-mochachai/). This exercise is similar to the preceding one. Look at it for the details.
Como recordatorio, este proyecto está siendo construido con base en el siguiente proyecto inicial [Repl.it](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), o clonado desde [GitHub](https://github.com/freeCodeCamp/boilerplate-mochachai/).
Now that you have seen how it is done, it is your turn to do it from scratch.
Este ejercicio es similar al anterior.
Ahora que sabes cómo comprobar una petición `PUT`, es tu turno de hacerlo desde cero.
# --instructions--
Within `tests/2_functional-tests.js`, alter the `'send {surname: "da Verrazzano"}'` test (`// #4`):
Dentro de `tests/2_functional-tests.js`, modifica la prueba `'Send {surname: "da Verrazzano"}'` (`// #4`), usa los métodos `put` y `send` para probar el endpoint `'/travellers'`.
Send the following JSON response as a payload to the `/travellers` route:
Envia el siguiente objeto JSON con tu solicitud PUT:
```json
{
@@ -24,18 +26,18 @@ Send the following JSON response as a payload to the `/travellers` route:
}
```
Check for the following, within a `request.end` callback:
Compruebe lo siguiente dentro del callback `request.end`:
1. `status`
2. `type`
3. `body.name`
4. `body.surname`
1. El `status` debe ser `200`
2. El `type` debe ser `application/json`
3. El `body.name` debe ser `Giovanni`
4. El `body.surname` debe ser `da Verrazzano`
Follow the assertion order above - we rely on it. Be sure to remove `assert.fail()`, once complete.
Sigue el orden de las aserciones de arriba - nos basamos en esto. Además, asegúrese de eliminar `assert.fail()` una vez completado.
# --hints--
All tests should pass
Todas las pruebas deben pasar
```js
(getUserInput) =>
@@ -49,7 +51,7 @@ All tests should pass
);
```
You should test for 'res.status' to be 200
Debes comprobar que `res.status` sea 200
```js
(getUserInput) =>
@@ -65,7 +67,7 @@ You should test for 'res.status' to be 200
);
```
You should test for 'res.type' to be 'application/json'
Debes comprobar que `res.type` sea `'application/json'`
```js
(getUserInput) =>
@@ -81,7 +83,7 @@ You should test for 'res.type' to be 'application/json'
);
```
You should test for 'res.body.name' to be 'Giovanni'
Debes comprobar que `res.body.name` sea `'Giovanni'`
```js
(getUserInput) =>
@@ -97,7 +99,7 @@ You should test for 'res.body.name' to be 'Giovanni'
);
```
You should test for 'res.body.surname' to be 'da Verrazzano'
Debes comprobar que `res.body.surname` sea `'da Verrazzano'`
```js
(getUserInput) =>