Skip to content

Commit b6f91f5

Browse files
Update Node to v22
1 parent 1a21159 commit b6f91f5

File tree

4 files changed

+70
-5
lines changed

4 files changed

+70
-5
lines changed

.github/workflows/DataValidation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Use Node.js
1717
uses: actions/setup-node@v3
1818
with:
19-
node-version: 16.x
19+
node-version: 22.x
2020
cache: "npm"
2121
- name: Install dependencies
2222
run: npm ci
@@ -32,7 +32,7 @@ jobs:
3232
- name: Use Node.js
3333
uses: actions/setup-node@v3
3434
with:
35-
node-version: 16.x
35+
node-version: 22.x
3636
cache: "npm"
3737
- name: Install dependencies
3838
run: npm ci

package-lock.json

Lines changed: 65 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"devDependencies": {
1111
"@vitest/coverage-c8": "^0.29.2",
1212
"bible-passage-reference-parser": "^2.0.1",
13+
"buffer": "^6.0.3",
1314
"jsonschema": "^1.4.1",
1415
"typescript": "^4.9.3",
1516
"typescript-json-schema": "^0.55.0",

tests/all.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { resolve } from "path";
33
import { readdirSync, readFileSync } from "fs"
44
import { bcv_parser as BcvParcer } from "bible-passage-reference-parser/js/en_bcv_parser"
55
import { Validator } from "jsonschema"
6+
import buffer from 'buffer'
67
import TJS from "typescript-json-schema"
78
import type { CreedDocument, Proof } from "./types.ts"
89

@@ -125,9 +126,7 @@ describe.each(Object.values(testData).flat())('$filename', ({filepath, creed}) =
125126

126127
test('is ascii', async () => {
127128
let buf = readFileSync(filepath)
128-
const len=buf.length
129-
for (let i=0; i<len; i++)
130-
expect(127, "This character is bad: "+i).toBeGreaterThan(buf[i])
129+
expect(buffer.isAscii(buf)).toBeTruthy()
131130
})
132131
})
133132

0 commit comments

Comments
 (0)