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 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