diff --git a/tools/js/test/audit_datarenames.js b/tools/js/test/audit_datarenames.js index 300c28bc3..96298fd19 100644 --- a/tools/js/test/audit_datarenames.js +++ b/tools/js/test/audit_datarenames.js @@ -22,12 +22,12 @@ describe('audit dataRenames', function () { let items let pFile = path.join(p, 'items.json') if (fs.existsSync(pFile)) { - items = require(pFile) + items = JSON.parse(fs.readFileSync(pFile)) } let blocks pFile = path.join(p, 'blocks.json') if (fs.existsSync(pFile)) { - blocks = require(pFile) + blocks = JSON.parse(fs.readFileSync(pFile)) } const pickData = {