From aa34a5ed466df9f556a0a933774592e21928d099 Mon Sep 17 00:00:00 2001 From: Gaurav Vaidya Date: Wed, 24 Apr 2024 04:04:17 -0400 Subject: [PATCH] Fixed an issue in another test. --- test/scripts/phyx2owl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/scripts/phyx2owl.js b/test/scripts/phyx2owl.js index e73161bc..5daa52e4 100644 --- a/test/scripts/phyx2owl.js +++ b/test/scripts/phyx2owl.js @@ -64,7 +64,7 @@ describe(PHYX2OWL_JS, function () { }); it('should be able to convert the entire `test/examples/correct` directory', function () { const EXAMPLE_DIR = path.resolve(__dirname, '../examples/correct'); - const jsonFilesInExamples = fs.readdirSync(EXAMPLE_DIR, 'utf8') + const jsonFilesInExamples = fs.readdirSync(EXAMPLE_DIR, { recursive: true }) .filter(fileName => fileName.toLowerCase().endsWith('.json')); const result = child.spawnSync(PHYX2OWL_JS, [EXAMPLE_DIR, '--base-iri', 'http://example.org/phyx.js/example#'], {