diff --git a/.gitignore b/.gitignore index 7fa7791..51b25ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +# El repositorio que se descarga solo +my_calculator # Logs logs *.log @@ -62,4 +64,4 @@ typings/ .idea/* -node_modules/ \ No newline at end of file +node_modules/ diff --git a/README.md b/README.md index 4e975eb..4fc232b 100644 --- a/README.md +++ b/README.md @@ -7,19 +7,18 @@ Puede descargar este proyecto en el ordenador local de dos formas: El proyecto se descarga, instala y ejecuta en el ordenador local con los siguientes comandos: ```sh -$ ## El proyecto también puede copiarse en el ordenador local con: +# El proyecto también puede copiarse en el ordenador local con: $ git clone https://github.com/practicas-ging/mooc_git-entrega1_merge -$ + $ cd mooc_git-entrega1_merge ## Entrar en el directorio de trabajo del programa de test -$ + $ npm install ## Instala el programa de test, que es un paquete npm -$ + $ npm run checks [nombre_de_la_cuenta] ## Pasa los tests sobre el repositorio en github ...................................## indicando que partes están correctamente ...................................## implementadas y cuales no. ... (resultado de los tests) -$ ``` Debe cambiar **\[nombre_de_la_cuenta]** por el nombre identificador de su repositorio en GitHub, por -ejemplo **evaperez1**. \ No newline at end of file +ejemplo **evaperez1**. diff --git a/tests/checks.test.js b/tests/checks.test.js index 720fd80..d030c63 100644 --- a/tests/checks.test.js +++ b/tests/checks.test.js @@ -83,9 +83,10 @@ describe('mooc_git-entrega1_merge', function () { error_critical = this.msg_err; should.not.exist(error_critical); } + files_commit_1_master = output; this.msg_ok = `Found the file '${expected}' in the master branch commit ${commit_1_master}`; this.msg_err = `File '${expected}' not found in the master branch commit ${commit_1_master}`; - Utils.search(expected, output).should.be.equal(true); + Utils.search(expected, files_commit_1_master).should.be.equal(true); } }); @@ -191,6 +192,7 @@ describe('mooc_git-entrega1_merge', function () { this.msg_err = error_critical; should.not.exist(error_critical); } else { + commit_head_sine = branches.branches[BRANCH_NAME].commit; let output; this.msg_ok = `Found '${expected}' in master merge commit ${commit_head_sine} contents`; this.msg_err = `'${expected}' not found in final master merge commit ${commit_head_sine} contents`; diff --git a/tests/launcher.js b/tests/launcher.js index efca6ab..aa71dc4 100644 --- a/tests/launcher.js +++ b/tests/launcher.js @@ -36,5 +36,5 @@ new Mocha({ } }) .on('end', function (test) { - process.stdout.write(`Final Result: ${score}/${score_total}`); - }); \ No newline at end of file + process.stdout.write(`Final Result: ${score}/${score_total}\n`); + });