chore(i18n,learn): processed translations (#44765)

This commit is contained in:
camperbot
2022-01-12 20:10:05 +05:30
committed by GitHub
parent 47e1d2b7df
commit 55275ab034
12 changed files with 112 additions and 116 deletions

View File

@@ -1,45 +1,43 @@
---
id: 587d824f367417b2b2512c5c
title: Simulate Actions Using a Headless Browser
title: Simular acciones usando un navegador sin interfaz gráfica
challengeType: 2
dashedName: simulate-actions-using-a-headless-browser
---
# --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 [Replit](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), o clonado desde [GitHub](https://github.com/freeCodeCamp/boilerplate-mochachai/).
In the next challenges we are going to simulate the human interaction with a page using a device called 'Headless Browser'.
En los siguientes desafíos, simularás la interacción humana con una página usando un navegador sin interfaz gráfica.
A headless browser is a web browser without a graphical user interface. This kind of tool is particularly useful for testing web pages, as it is able to render and understand HTML, CSS, and JavaScript the same way a browser would.
Los navegadores sin interfaz gráfica, son navegadores web sin GUI. Son capaces de representar e interpretar HTML, CSS y JavaScript de la misma manera que un navegador regular, haciéndolos particularmente útiles para probar páginas web.
For these challenges we are using Zombie.JS. It's a lightweight browser which is totally based on JS, without relying on additional binaries to be installed. This feature makes it usable in an environment such as Replit. There are many other (more powerful) options.
Para los siguientes desafíos usarás Zombie.js, que es un navegador ligero sin interfaz gráfica que no se basa en binarios adicionales para instalar. Esta característica hace que sea utilizable en entornos limitados como Replit. Pero hay muchas otras opciones más potentes, para navegadores interfaz gráfica.
Mocha allows you to prepare the ground running some code before the actual tests. This can be useful for example to create items in the database, which will be used in the successive tests.
Mocha te permite ejecutar algo código antes de que se ejecuten cualquiera de las pruebas reales. Esto puede ser útil para hacer cosas como agregar información a una base de datos que se utilizará en el resto de las pruebas.
With a headless browser, before the actual testing, we need to **visit** the page we are going to inspect. The `suiteSetup` 'hook' is executed only once at the suite startup. Other different hook types can be executed before each test, after each test, or at the end of a suite. See the Mocha docs for more information.
Con un navegador sin interfaz gráfica, antes de ejecutar las pruebas, necesita **visitar** la página de prueba.
El hook `suiteSetup` solo se ejecuta una vez al comienzo de un conjunto de pruebas.
Hay otros tipos de hooks que pueden ejecutar código antes de cada prueba, después de cada prueba, o al final de un conjunto de pruebas. Consulta la documentación de Mocha para obtener más información.
# --instructions--
Within `tests/2_functional-tests.js`, immediately after the `Browser` declaration, add your project URL to the `site` property of the variable:
Dentro de `tests/2_functional-tests.js`, inmediatamente después de la declaración `Browser`, agrega la URL de tu proyecto a la propiedad `site` de la variable:
```js
Browser.site = 'https://sincere-cone.gomix.me'; // Your URL here
Browser.site = 'https://boilerplate-mochachai.your-username.repl.co'; // Your URL here
```
If you are testing on a local environment replace the line above with
```js
Browser.localhost('example.com', process.env.PORT || 3000);
```
Within `tests/2_functional-tests.js`, at the root level of the `'Functional Tests with Zombie.js'` suite, instantiate a new instance of the `Browser` object with the following code:
Luego, en la raíz del conjunto de `'Functional Tests with Zombie.js'`, crea una nueva instancia del objeto `Browser` con el siguiente código:
```js
const browser = new Browser();
```
Then, use the `suiteSetup` hook to direct the `browser` to the `/` route with the following code:
Y usa el hook `suiteSetup` para dirigir el navegador `browser` a la ruta `/` con el siguiente código:
```js
suiteSetup(function(done) {
@@ -49,15 +47,13 @@ suiteSetup(function(done) {
# --hints--
All tests should pass.
Todas las pruebas deben pasar.
```js
(getUserInput) =>
$.get(getUserInput('url') + '/_api/get-tests?type=functional').then(
$.get(getUserInput('url') + '/_api/get-tests?type=functional&n=4').then(
(data) => {
data.slice(0, 4).forEach((test) => {
assert.equal(test.state, 'passed');
})
assert.equal(data.state, 'passed');
},
(xhr) => {
throw new Error(xhr.responseText);

View File

@@ -1,6 +1,6 @@
---
id: 587d824b367417b2b2512c49
title: Test for Truthiness
title: Pruebas de veracidad
challengeType: 2
forumTopicId: 301596
dashedName: test-for-truthiness
@@ -8,25 +8,25 @@ dashedName: test-for-truthiness
# --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 [Replit](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), o clonado desde [GitHub](https://github.com/freeCodeCamp/boilerplate-mochachai/).
`isTrue()` will test for the boolean value `true` and `isNotTrue()` will pass when given anything but the boolean value of `true`.
`isTrue()` probará el valor booleano `true` y `isNotTrue()` pasará cuando se le dé cualquier cosa que no sea el valor booleano de `true`.
```js
assert.isTrue(true, 'this will pass with the boolean value true');
assert.isTrue('true', 'this will NOT pass with the string value "true"');
assert.isTrue(1, 'this will NOT pass with the number value 1');
assert.isTrue(true, 'This will pass with the boolean value true');
assert.isTrue('true', 'This will NOT pass with the string value "true"');
assert.isTrue(1, 'This will NOT pass with the number value 1');
```
`isFalse()` and `isNotFalse()` also exist, and behave similarly to their true counterparts except they look for the boolean value of `false`.
`isFalse()` y `isNotFalse()` también existen, y se comportan de manera similar a sus contrapartes verdaderas excepto que buscan el valor booleano de `false`.
# --instructions--
Within `tests/1_unit-tests.js` under the test labelled `#4` in the `Basic Assertions` suite, change each `assert` to either `assert.isTrue` or `assert.isNotTrue` 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 `#4` en la `Basic Assertions`, cambia cada `assert` a `assert.isTrue` o `assert.isNotTrue` para hacer que la prueba pase (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
# --hints--
All tests should pass.
Todas las pruebas deben pasar.
```js
(getUserInput) =>
@@ -40,7 +40,7 @@ All tests should pass.
);
```
You should choose the correct method for the first assertion - `isTrue` vs. `isNotTrue`.
Debes elegir el método correcto para la primera afirmación - `isTrue` vs. `isNotTrue`.
```js
(getUserInput) =>
@@ -54,7 +54,7 @@ You should choose the correct method for the first assertion - `isTrue` vs. `isN
);
```
You should choose the correct method for the second assertion - `isTrue` vs. `isNotTrue`.
Debes elegir el método correcto para la segunda afirmación: `isTrue` vs. `isNotTrue`.
```js
(getUserInput) =>
@@ -72,7 +72,7 @@ You should choose the correct method for the second assertion - `isTrue` vs. `is
);
```
You should choose the correct method for the third assertion - `isTrue` vs. `isNotTrue`.
Debes elegir el método correcto para la tercera afirmación: `isTrue` vs. `isNotTrue`.
```js
(getUserInput) =>

View File

@@ -1,6 +1,6 @@
---
id: 587d824d367417b2b2512c52
title: Test if a Value is a String
title: Prueba si un valor es una cadena
challengeType: 2
forumTopicId: 301599
dashedName: test-if-a-value-is-a-string
@@ -8,17 +8,17 @@ dashedName: test-if-a-value-is-a-string
# --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 [Replit](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), o clonado desde [GitHub](https://github.com/freeCodeCamp/boilerplate-mochachai/).
`isString` or `isNotString` asserts that the actual value is a string.
`isString` o `isNotString` comprueba que el valor actual es una cadena.
# --instructions--
Within `tests/1_unit-tests.js` under the test labelled `#13` in the `Strings` suite, change each `assert` to either `assert.isString` or `assert.isNotString` 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 `#13` en `Strings` suite, cambia cada `assert` a `assert.isString` o `assert.isNotString` para pasar la prueba (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
# --hints--
All tests should pass.
Todas las pruebas deben pasar.
```js
(getUserInput) =>
@@ -32,7 +32,7 @@ All tests should pass.
);
```
You should choose the correct method for the first assertion - `isString` vs. `isNotString`.
Debe elegir el método correcto para la primera aserción - `isString` vs. `isNotString`.
```js
(getUserInput) =>
@@ -50,7 +50,7 @@ You should choose the correct method for the first assertion - `isString` vs. `i
);
```
You should choose the correct method for the second assertion - `isString` vs. `isNotString`.
Debe elegir el método correcto para la segunda aserción - `isString` vs `isNotString`.
```js
(getUserInput) =>
@@ -68,7 +68,7 @@ You should choose the correct method for the second assertion - `isString` vs. `
);
```
You should choose the correct method for the third assertion - `isString` vs. `isNotString`.
Debe elegir el método correcto para la tercera aserción - `isString` vs `isNotString`.
```js
(getUserInput) =>

View File

@@ -1,6 +1,6 @@
---
id: 587d824e367417b2b2512c56
title: Test if a Value is of a Specific Data Structure Type
title: Prueba si un valor es de un tipo de estructura de datos específica
challengeType: 2
forumTopicId: 301601
dashedName: test-if-a-value-is-of-a-specific-data-structure-type
@@ -8,17 +8,17 @@ dashedName: test-if-a-value-is-of-a-specific-data-structure-type
# --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/).
`#typeOf` asserts that value's type is the given string, as determined by `Object.prototype.toString`.
`#typeOf` verifica que el tipo de dato es string, como lo determina `Object.prototype.toString`.
# --instructions--
Within `tests/1_unit-tests.js` under the test labelled `#17` in the `Objects` suite, change each `assert` to either `assert.typeOf` or `assert.notTypeOf` 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 `#17` en `Objects` suite, cambia cada `assert` a `assert.typeOf` o `assert.notTypeOf` para pasar la prueba (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
# --hints--
All tests should pass.
Todas las pruebas deben pasar.
```js
(getUserInput) =>
@@ -32,7 +32,7 @@ All tests should pass.
);
```
You should choose the correct method for the first assertion - `typeOf` vs. `notTypeOf`.
Debe elegir el método correcto para la primera aserción - `typeOf` vs `notTypeOf`.
```js
(getUserInput) =>
@@ -50,7 +50,7 @@ You should choose the correct method for the first assertion - `typeOf` vs. `not
);
```
You should choose the correct method for the second assertion - `typeOf` vs. `notTypeOf`.
Debe elegir el método correcto para la segunda aserción - `typeOf` vs `notTypeOf`.
```js
(getUserInput) =>
@@ -68,7 +68,7 @@ You should choose the correct method for the second assertion - `typeOf` vs. `no
);
```
You should choose the correct method for the third assertion - `typeOf` vs. `notTypeOf`.
Debe elegir el método correcto para la tercera aserción - `typeOf` vs `notTypeOf`.
```js
(getUserInput) =>
@@ -86,7 +86,7 @@ You should choose the correct method for the third assertion - `typeOf` vs. `not
);
```
You should choose the correct method for the fourth assertion - `typeOf` vs. `notTypeOf`.
Debe elegir el método correcto para la cuarta aserción - `typeOf` vs `notTypeOf`.
```js
(getUserInput) =>
@@ -104,7 +104,7 @@ You should choose the correct method for the fourth assertion - `typeOf` vs. `no
);
```
You should choose the correct method for the fifth assertion - `typeOf` vs. `notTypeOf`.
Debe elegir el método correcto para la quinta aserción - `typeOf` vs `notTypeOf`.
```js
(getUserInput) =>

View File

@@ -1,6 +1,6 @@
---
id: 587d824b367417b2b2512c47
title: Test if a Variable or Function is Defined
title: Comprueba si una variable o función está definida
challengeType: 2
forumTopicId: 301602
dashedName: test-if-a-variable-or-function-is-defined
@@ -8,15 +8,15 @@ dashedName: test-if-a-variable-or-function-is-defined
# --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 [Replit](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 `#2` in the `Basic Assertions` suite, change each `assert` to either `assert.isDefined()` or `assert.isUndefined()` 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 `#2` en `Basic Assertions` suite, cambie cada `assert` a `assert.isDefined()` o `assert.isUndefined()` para hacer que la prueba pase (debe evaluarse como `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 - `isDefined` vs. `isUndefined`.
Debe elegir el método correcto para la primera aserción - `isDefined` vs `isUndefined`.
```js
(getUserInput) =>
@@ -48,7 +48,7 @@ You should choose the correct method for the first assertion - `isDefined` vs. `
);
```
You should choose the correct method for the second assertion - `isDefined` vs. `isUndefined`.
Debe elegir el método correcto para la segunda aserción - `isDefined` vs `isUndefined`.
```js
(getUserInput) =>
@@ -66,7 +66,7 @@ You should choose the correct method for the second assertion - `isDefined` vs.
);
```
You should choose the correct method for the third assertion - `isDefined` vs. `isUndefined`.
Debe elegir el método correcto para la tercera aserción - `isDefined` vs `isUndefined`.
```js
(getUserInput) =>

View File

@@ -1,6 +1,6 @@
---
id: 587d824d367417b2b2512c51
title: Test if an Array Contains an Item
title: Comprueba si un arreglo contiene un elemento
challengeType: 2
forumTopicId: 301603
dashedName: test-if-an-array-contains-an-item
@@ -8,15 +8,15 @@ dashedName: test-if-an-array-contains-an-item
# --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 `#12` in the `Arrays` suite, change each `assert` to either `assert.include` or `assert.notInclude` 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 `#12` en `Arrays` suite, cambia cada `assert` a `assert.include` o `assert.notInclude` para pasar la prueba (debe evaluarse como `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 - `include` vs. `notInclude`.
Debe elegir el método correcto para la primera aserción - `include` vs `notInclude`.
```js
(getUserInput) =>
@@ -48,7 +48,7 @@ You should choose the correct method for the first assertion - `include` vs. `no
);
```
You should choose the correct method for the second assertion - `include` vs. `notInclude`.
Debe elegir el método correcto para la segunda aserción - `include` vs `notInclude`.
```js
(getUserInput) =>

View File

@@ -1,6 +1,6 @@
---
id: 587d824e367417b2b2512c55
title: Test if an Object has a Property
title: Comprueba si un objeto tiene una propiedad
challengeType: 2
forumTopicId: 301604
dashedName: test-if-an-object-has-a-property
@@ -8,17 +8,17 @@ dashedName: test-if-an-object-has-a-property
# --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 [Replit](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), o clonado desde [GitHub](https://github.com/freeCodeCamp/boilerplate-mochachai/).
`property` asserts that the actual object has a given property.
`property` verifica que el objeto actual tiene una propiedad determinada.
# --instructions--
Within `tests/1_unit-tests.js` under the test labelled `#16` in the `Objects` suite, change each `assert` to either `assert.property` or `assert.notProperty` 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 `#16` en `Objects` suite, cambia cada `assert` a `assert.property` o `assert.notProperty` para pasar la prueba (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
# --hints--
All tests should pass.
Todas las pruebas deben pasar.
```js
(getUserInput) =>
@@ -32,7 +32,7 @@ All tests should pass.
);
```
You should choose the correct method for the first assertion - `property` vs. `notProperty`.
Debe elegir el método correcto para la primera aserción - `property` vs `notProperty`.
```js
(getUserInput) =>
@@ -50,7 +50,7 @@ You should choose the correct method for the first assertion - `property` vs. `n
);
```
You should choose the correct method for the second assertion - `property` vs. `notProperty`.
Debe elegir el método correcto para la segunda aserción - `property` vs `notProperty`.
```js
(getUserInput) =>
@@ -68,7 +68,7 @@ You should choose the correct method for the second assertion - `property` vs. `
);
```
You should choose the correct method for the third assertion - `property` vs. `notProperty`.
Debe elegir el método correcto para la tercera aserción - `property` vs `notProperty`.
```js
(getUserInput) =>

View File

@@ -1,6 +1,6 @@
---
id: 587d824e367417b2b2512c57
title: Test if an Object is an Instance of a Constructor
title: Comprueba si un objeto es una instancia de un constructor
challengeType: 2
forumTopicId: 301605
dashedName: test-if-an-object-is-an-instance-of-a-constructor
@@ -8,17 +8,17 @@ dashedName: test-if-an-object-is-an-instance-of-a-constructor
# --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 [Replit](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), o clonado desde [GitHub](https://github.com/freeCodeCamp/boilerplate-mochachai/).
`#instanceOf` asserts that an object is an instance of a constructor.
`#instanceOf` verifica que un objeto es una instancia de un constructor.
# --instructions--
Within `tests/1_unit-tests.js` under the test labelled `#18` in the `Objects` suite, change each `assert` to either `assert.instanceOf` or `assert.notInstanceOf` 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 `#18` en `Objects` suite, cambia cada `assert` a `assert.instanceOf` o `assert.notInstanceOf` para pasar la prueba (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
# --hints--
All tests should pass.
Todas las pruebas deben pasar.
```js
(getUserInput) =>
@@ -32,7 +32,7 @@ All tests should pass.
);
```
You should choose the correct method for the first assertion - `instanceOf` vs. `notInstanceOf`.
Debe elegir el método correcto para la primera aserción - `instanceOf` vs `notInstanceOf`.
```js
(getUserInput) =>
@@ -50,7 +50,7 @@ You should choose the correct method for the first assertion - `instanceOf` vs.
);
```
You should choose the correct method for the second assertion - `instanceOf` vs. `notInstanceOf`.
Debe elegir el método correcto para la segunda aserción - `instanceOf` vs `notInstanceOf`.
```js
(getUserInput) =>
@@ -68,7 +68,7 @@ You should choose the correct method for the second assertion - `instanceOf` vs.
);
```
You should choose the correct method for the third assertion - `instanceOf` vs. `notInstanceOf`.
Debe elegir el método correcto para la tercera aserción - `instanceOf` vs `notInstanceOf`.
```js
(getUserInput) =>
@@ -86,7 +86,7 @@ You should choose the correct method for the third assertion - `instanceOf` vs.
);
```
You should choose the correct method for the fourth assertion - `instanceOf` vs. `notInstanceOf`.
Debe elegir el método correcto para la cuarta aserción - `instanceOf` vs `notInstanceOf`.
```js
(getUserInput) =>

View File

@@ -1,6 +1,6 @@
---
id: 587d824b367417b2b2512c48
title: Use Assert.isOK and Assert.isNotOK
title: Use Assert.isOK y Assert.isNotOK
challengeType: 2
forumTopicId: 301607
dashedName: use-assert-isok-and-assert-isnotok
@@ -8,19 +8,19 @@ dashedName: use-assert-isok-and-assert-isnotok
# --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 [Replit](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), o clonado desde [GitHub](https://github.com/freeCodeCamp/boilerplate-mochachai/).
`isOk()` will test for a truthy value, and `isNotOk()` will test for a falsy value.
`isOk()` prueba un valor verdadero y `isNotOk()` prueba un valor falso.
To learn more about truthy and falsy values, try our [Falsy Bouncer](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-algorithm-scripting/falsy-bouncer) challenge.
Para aprender más sobre los valores verdaderos y falsos, prueba nuestro desafío de [Falsy Bouncer](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-algorithm-scripting/falsy-bouncer).
# --instructions--
Within `tests/1_unit-tests.js` under the test labelled `#3` in the `Basic Assertions` suite, change each `assert` to either `assert.isOk()` or `assert.isNotOk()` 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 `#3` en `Basic Assertions` suite, cambie cada `assert` a `assert.isOk()` o `assert.isNotOk()` para hacer que la prueba pase (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
# --hints--
All tests should pass.
Todas las pruebas deben pasar.
```js
(getUserInput) =>
@@ -34,7 +34,7 @@ All tests should pass.
);
```
You should choose the correct method for the first assertion - `isOk` vs. `isNotOk`.
Debe elegir el método correcto para la primera aserción - `isOk` vs `isNotOk`.
```js
(getUserInput) =>
@@ -48,7 +48,7 @@ You should choose the correct method for the first assertion - `isOk` vs. `isNot
);
```
You should choose the correct method for the second assertion - `isOk` vs. `isNotOk`.
Debe elegir el método correcto para la segunda aserción - `isOk` vs `isNotOk`.
```js
(getUserInput) =>
@@ -62,7 +62,7 @@ You should choose the correct method for the second assertion - `isOk` vs. `isNo
);
```
You should choose the correct method for the third assertion - `isOk` vs. `isNotOk`.
Debe elegir el método correcto para la tercera aserción - `isOk` vs `isNotOk`.
```js
(getUserInput) =>

View File

@@ -1,6 +1,6 @@
---
id: 587d824d367417b2b2512c54
title: Use Regular Expressions to Test a String
title: Usar expresiones regulares para probar una cadena
challengeType: 2
forumTopicId: 301608
dashedName: use-regular-expressions-to-test-a-string
@@ -8,17 +8,17 @@ dashedName: use-regular-expressions-to-test-a-string
# --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 [Replit](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), o clonado desde [GitHub](https://github.com/freeCodeCamp/boilerplate-mochachai/).
`match()` asserts that the actual value matches the second argument regular expression.
`match()` verifica que el valor real coincide con la expresión regular del segundo argumento.
# --instructions--
Within `tests/1_unit-tests.js` under the test labelled `#15` in the `Strings` suite, change each `assert` to either `assert.match` or `assert.notMatch` 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 `#15` en `Strings`, suite cambia cada `assert` a `assert.match` o `assert.notMatch` para pasar la prueba (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
# --hints--
All tests should pass.
Todas las pruebas deben pasar.
```js
(getUserInput) =>
@@ -32,7 +32,7 @@ All tests should pass.
);
```
You should choose the correct method for the first assertion - `match` vs. `notMatch`.
Debe elegir el método correcto para la primera aserción - `match` vs `notMatch`.
```js
(getUserInput) =>
@@ -50,7 +50,7 @@ You should choose the correct method for the first assertion - `match` vs. `notM
);
```
You should choose the correct method for the second assertion - `match` vs. `notMatch`.
Debe elegir el método correcto para la segunda aserción - `match` vs `notMatch`.
```js
(getUserInput) =>

View File

@@ -1,6 +1,6 @@
---
id: 587d824b367417b2b2512c4a
title: Use the Double Equals to Assert Equality
title: Usa las Igualdades dobles para comprobar la Igualdad Estricta
challengeType: 2
forumTopicId: 301609
dashedName: use-the-double-equals-to-assert-equality
@@ -8,17 +8,17 @@ dashedName: use-the-double-equals-to-assert-equality
# --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 [Replit](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), o clonado desde [GitHub](https://github.com/freeCodeCamp/boilerplate-mochachai/).
`equal()` compares objects using `==`.
`equal()` compara objetos usando `==`.
# --instructions--
Within `tests/1_unit-tests.js` under the test labelled `#5` in the `Equality` suite, change each `assert` to either `assert.equal` or `assert.notEqual` 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 `#5` en `Equality` suite, cambia cada `assert` a `assert.equal` o `assert.notEqual`, para pasar la prueba (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
# --hints--
All tests should pass.
Todas las pruebas deben pasar.
```js
(getUserInput) =>
@@ -32,7 +32,7 @@ All tests should pass.
);
```
You should choose the correct method for the first assertion - `equal` vs. `notEqual`.
Debe elegir el método correcto para la primera aserción - `equal` vs `notEqual`.
```js
(getUserInput) =>
@@ -50,7 +50,7 @@ You should choose the correct method for the first assertion - `equal` vs. `notE
);
```
You should choose the correct method for the second assertion - `equal` vs. `notEqual`.
Debe elegir el método correcto para la segunda aserción - `equal` vs `notEqual`.
```js
(getUserInput) =>
@@ -68,7 +68,7 @@ You should choose the correct method for the second assertion - `equal` vs. `not
);
```
You should choose the correct method for the third assertion - `equal` vs. `notEqual`.
Debe elegir el método correcto para la tercera aserción - `equal` vs `notEqual`.
```js
(getUserInput) =>
@@ -86,7 +86,7 @@ You should choose the correct method for the third assertion - `equal` vs. `notE
);
```
You should choose the correct method for the fourth assertion - `equal` vs. `notEqual`.
Debe elegir el método correcto para la cuarta aserción - `equal` vs `notEqual`.
```js
(getUserInput) =>

View File

@@ -1,6 +1,6 @@
---
id: 587d824b367417b2b2512c4b
title: Use the Triple Equals to Assert Strict Equality
title: Usar igualdades triples para comprobar la igualdad estricta
challengeType: 2
forumTopicId: 301610
dashedName: use-the-triple-equals-to-assert-strict-equality
@@ -8,17 +8,17 @@ dashedName: use-the-triple-equals-to-assert-strict-equality
# --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 [Replit](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), o clonado desde [GitHub](https://github.com/freeCodeCamp/boilerplate-mochachai/).
`strictEqual()` compares objects using `===`.
`strictEqual()` compara objetos usando `===`.
# --instructions--
Within `tests/1_unit-tests.js` under the test labelled `#6` in the `Equality` suite, change each `assert` to either `assert.strictEqual` or `assert.notStrictEqual` 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 `#6` en `Equality` suite, cambia cada `assert` a `assert.strictEqual` o `assert.notStrictEqual`, para que la prueba sea pasada (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
# --hints--
All tests should pass.
Todas las pruebas deben pasar.
```js
(getUserInput) =>
@@ -32,7 +32,7 @@ All tests should pass.
);
```
You should choose the correct method for the first assertion - `strictEqual` vs. `notStrictEqual`.
Debe elegir el método correcto para la primera comprobación - `strictEqual` vs. `notStrictEqual`.
```js
(getUserInput) =>
@@ -50,7 +50,7 @@ You should choose the correct method for the first assertion - `strictEqual` vs.
);
```
You should choose the correct method for the second assertion - `strictEqual` vs. `notStrictEqual`.
Debe elegir el método correcto para la segunda aserción - `strictEqual` vs `notStrictEqual`.
```js
(getUserInput) =>
@@ -64,7 +64,7 @@ You should choose the correct method for the second assertion - `strictEqual` vs
);
```
You should choose the correct method for the third assertion - `strictEqual` vs. `notStrictEqual`.
Debe elegir el método correcto para la tercera aserción - `strictEqual` vs `notStrictEqual`.
```js
(getUserInput) =>
@@ -82,7 +82,7 @@ You should choose the correct method for the third assertion - `strictEqual` vs.
);
```
You should choose the correct method for the fourth assertion - `strictEqual` vs. `notStrictEqual`.
Debe elegir el método correcto para la cuarta aserción - `strictEqual` vs `notStrictEqual`.
```js
(getUserInput) =>