Proper JSON import for test
This commit is contained in:
parent
c012f7a186
commit
028213e6ac
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue