<sectionid="description"> Como recordatorio, este proyecto se está construyendo sobre el siguiente proyecto de inicio en <ahref="https://glitch.com/#!/import/github/freeCodeCamp/boilerplate-mochachai/">Glitch</a> , o clonado desde <ahref="https://github.com/freeCodeCamp/boilerplate-mochachai/">GitHub</a> . Utilice assert.isTrue () o assert.isNotTrue () para hacer que se pasen las pruebas. .isTrue (verdadero) y .isNotTrue (todo lo demás) pasarán. .isFalse () y .isNotFalse () también existen. </section>
- text: Elija la aserción correcta - isTrue vs. isNotTrue
testString: 'getUserInput => $.get(getUserInput("url") + "/_api/get-tests?type=unit&n=3").then(data => { assert.equal(data.assertions[1].method, "isTrue", "Double negation of a truthy value is true"); }, xhr => { throw new Error(xhr.responseText); })'
- text: Elija la aserción correcta - isTrue vs. isNotTrue
testString: 'getUserInput => $.get(getUserInput("url") + "/_api/get-tests?type=unit&n=3").then(data => { assert.equal(data.assertions[2].method, "isNotTrue", "A truthy object is not true - neither is a false one"); }, xhr => { throw new Error(xhr.responseText); })'