Added a test script and a sample data pub for it to run against
Showing
- index.js 6 additions, 1 deletionindex.js
- lib/catalog.js 166 additions, 0 deletionslib/catalog.js
- package-lock.json 200 additions, 0 deletionspackage-lock.json
- package.json 8 additions, 2 deletionspackage.json
- test/catalog.spec.js 37 additions, 0 deletionstest/catalog.spec.js
- test_data/datapub.json 172 additions, 0 deletionstest_data/datapub.json
lib/catalog.js
0 → 100644
package-lock.json
0 → 100644
... | ... | @@ -4,7 +4,7 @@ |
"description": "utilities for building and manipulating DataCrate data packages", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "./node_modules/mocha/bin/mocha" | ||
"test": "./node_modules/mocha/bin/mocha ./**/*spec.js" | ||
}, | ||
"keywords": [ | ||
"datacrate", | ||
... | ... | @@ -12,5 +12,11 @@ |
], | ||
"author": "Mike Lynch", | ||
"license": "GPL-3.0", | ||
"repository": "https://code.research.uts.edu.au/eresearch/datacrate" | ||
"repository": "https://code.research.uts.edu.au/eresearch/datacrate", | ||
"dependencies": { | ||
"fs-extra": "^7.0.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "^5.2.0" | ||
} | ||
} |
test/catalog.spec.js
0 → 100644
test_data/datapub.json
0 → 100644
Please register or sign in to comment