Skip to content

Commit 28c6296

Browse files
committed
Testing GitHub Actions
1 parent 23e84a6 commit 28c6296

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/node.js.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: Node.js CI
4+
name: npm test
55

66
on:
77
push:
@@ -16,7 +16,8 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [10.x, 12.x, 14.x, 15.x]
19+
node-version: [15.x]
20+
#node-version: [10.x, 12.x, 14.x, 15.x]
2021
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2122

2223
steps:
@@ -27,4 +28,5 @@ jobs:
2728
node-version: ${{ matrix.node-version }}
2829
#- run: npm ci
2930
#- run: npm run build --if-present
31+
- run: npm install
3032
- run: npm test

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,5 @@ Stop the app in regular NodeJS fashion
4343
- Node's Readline Module: https://nodejs.org/api/readline.html
4444
- How to setup Jest: https://amenallah.com/node-js-typescript-jest-express-starter/
4545
- Binary Coversions: https://www.build-electronic-circuits.com/binary-number-system/
46+
47+
testing update

src/conversions/__tests__/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { binaryToDecimal, decimalToBinary } from "../index";
22

33
describe("Conversion Functions", () => {
44
it("converts binary string to the correct decimal result", () => {
5-
const binary = "1101100";
5+
const binary = "110110";
66

77
expect(binaryToDecimal(binary)).toBe("Decimal Result: 108");
88
});

0 commit comments

Comments
 (0)