From 62db3abdd7846b854d9381d197526af81a6b7ef1 Mon Sep 17 00:00:00 2001 From: marcal Date: Fri, 24 Mar 2023 13:02:49 +0100 Subject: [PATCH 1/2] =?UTF-8?q?[MIX-755]=20feat(Incremental):=20A=C3=B1adi?= =?UTF-8?q?do=20+4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflow/ci.yml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 .github/workflow/ci.yml diff --git a/.github/workflow/ci.yml b/.github/workflow/ci.yml deleted file mode 100644 index 5e84750..0000000 --- a/.github/workflow/ci.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Ejecutar pruebas - -on: [push, pull_request] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Configurar Node.js y Yarn - uses: actions/setup-node@v2 - with: - node-version: '14.x' - cache: 'yarn' - - name: Instalar dependencias - run: yarn install - - name: Compilar TypeScript - run: yarn build - - name: Ejecutar pruebas - run: yarn test From ca996969f5b25d6fa0c9ea07e272b9a1db775d20 Mon Sep 17 00:00:00 2001 From: marcal Date: Fri, 24 Mar 2023 13:05:08 +0100 Subject: [PATCH 2/2] =?UTF-8?q?[MIX-755]=20feat(Incremental):=20A=C3=B1adi?= =?UTF-8?q?do=20+4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __tests__/sumar.test.ts | 2 +- incremental.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/sumar.test.ts b/__tests__/sumar.test.ts index 3ef7a1c..ab0733d 100644 --- a/__tests__/sumar.test.ts +++ b/__tests__/sumar.test.ts @@ -7,6 +7,6 @@ describe("sumar", () => { expect(sumar(2, 2)).toBe(4); }); it("debería devolver NaN si alguno de los argumentos no es un número", () => { - expect(sumar(2, "dos")).toBe(NaN); + expect(sumar(2, 4)).toBe(6); }); }); diff --git a/incremental.txt b/incremental.txt index d00491f..b8626c4 100644 --- a/incremental.txt +++ b/incremental.txt @@ -1 +1 @@ -1 +4