Compare commits
2 commits
main
...
gaiety-mas
Author | SHA1 | Date | |
---|---|---|---|
![]() |
028213e6ac | ||
![]() |
c012f7a186 |
3 changed files with 19 additions and 2 deletions
15
.gitlab-ci.yml
Normal file
15
.gitlab-ci.yml
Normal 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
|
|
@ -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)
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+ssh://git@github.com/sharpshark28/json-query-chain.git"
|
"url": "git+ssh://git@github.com/sharpshark28/json-query-chain.git"
|
||||||
},
|
},
|
||||||
"author": "Ava Wroten <ava@wroten.me>",
|
"author": "Joe Wroten <joe@wroten.me>",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/sharpshark28/json-query-chain/issues"
|
"url": "https://github.com/sharpshark28/json-query-chain/issues"
|
||||||
|
|
Loading…
Add table
Reference in a new issue