From 028213e6ac30d5a31f2cf7aea88c56a2b6df1dfe Mon Sep 17 00:00:00 2001 From: Ava Gaiety Wroten Date: Mon, 21 Sep 2020 18:14:11 -0500 Subject: [PATCH] Proper JSON import for test --- index.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.test.js b/index.test.js index 38f4bd9..6048bbb 100644 --- a/index.test.js +++ b/index.test.js @@ -1,5 +1,7 @@ const Query = require('./index') -const TestData = require('./testdata.json') +const fs = require('fs') + +const TestData = JSON.parse(fs.readFileSync('./testdata.json')) test('should not modify passed data without chain alterations', () => { let query = new Query(TestData)