Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Ava Gaiety Wroten
028213e6ac Proper JSON import for test 2020-09-21 18:14:11 -05:00
Ava Gaiety Wroten
c012f7a186 Update .gitlab-ci.yml 2020-09-21 22:53:09 +00:00
2 changed files with 18 additions and 1 deletions

15
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,15 @@
# This file is a template, and might need editing before it works on your project.
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
image: node:latest
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
paths:
- node_modules/
test_async:
script:
- npm install
- node run test

View file

@ -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)