Proper JSON import for test

This commit is contained in:
Ava Gaiety Wroten 2020-09-21 18:14:11 -05:00
parent c012f7a186
commit 028213e6ac

View file

@ -1,5 +1,7 @@
const Query = require('./index') 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', () => { test('should not modify passed data without chain alterations', () => {
let query = new Query(TestData) let query = new Query(TestData)