Skip to content

Commit

Permalink
Fix issue with glob package
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Dec 11, 2024
1 parent 283e1cc commit b0bfb1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"eslint": "~9.16",
"eslint-config-gbv": "~2.6",
"esmock": "^2.6.9",
"glob": "^10.4.5",
"husky": "^9.1.7",
"jsonwebtoken": "^9.0.2",
"lint-staged": "^15.2.11",
Expand Down
4 changes: 2 additions & 2 deletions test/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import chai from "./chai.js"

import * as server from "../server.js"

import glob from "glob"
import { globSync } from "glob"
import fs from "node:fs"

import assert from "node:assert"
Expand All @@ -18,7 +18,7 @@ let examples = {}
for (let type of types) {
examples[type] = []
for (let expected of [true, false]) {
let files = glob.sync(`./node_modules/jskos-validate/examples/${type}/${expected ? "pass" : "fail"}/*.json`)
let files = globSync(`./node_modules/jskos-validate/examples/${type}/${expected ? "pass" : "fail"}/*.json`)
for (let file of files) {
try {
let object = JSON.parse(fs.readFileSync(file))
Expand Down

0 comments on commit b0bfb1e

Please sign in to comment.