Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ bower_components

db/
package-lock.json

.nyc_output/
import_test_db_0123
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
language: node_js
node_js:
- "4"
- "6"
- "7"
- "8"
- "10" # LTS
- "11"
- "12" # LTS
- "13"
script:
- npm run coverage
- npm run publish-coverage
Expand Down
26 changes: 12 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"main": "index.js",
"scripts": {
"test": "mocha --reporter spec test",
"zuul": "zuul test/common.js test/*spec.js",
"zuul-local": "zuul --open --local 8080 -- test/common.js test/*spec.js",
"coverage": "rm -rf coverage; istanbul cover _mocha -- --recursive --reporter spec --bail",
"coverage": "nyc --reporter=lcov npm run test",
"publish-coverage": "cat coverage/lcov.info | coveralls"
},
"repository": {
Expand All @@ -31,27 +29,27 @@
"license": "MIT",
"dependencies": {
"cli": "^1.0.1",
"concat-stream": "^1.6.0",
"concat-stream": "^2.0.0",
"end-of-stream": "^1.4.0",
"glob": "^7.1.2",
"level": "^1.7.0",
"mkdirp": "^0.5.0",
"level": "^6.0.0",
"mkdirp": "^1.0.3",
"n3": "^0.10.0",
"progress-stream": "^2.0.0",
"readable-stream": "^2.2.10"
"readable-stream": "^3.5.0"
},
"peerDependencies": {
"levelgraph": "^2.0.0"
},
"devDependencies": {
"browserify": "^14.3.0",
"chai": "^3.5.0",
"coveralls": "^2.13.1",
"istanbul": "^0.4.4",
"browserify": "^16.5.0",
"chai": "^4.2.0",
"coveralls": "^3.0.9",
"levelgraph": "^2.0.0",
"memdb": "^1.3.1",
"mocha": "^3.4.2",
"uglify-js": "^3.0.15",
"zuul": "^3.11.1"
"mocha": "^7.0.1",
"nyc": "^15.0.0",
"rimraf": "^3.0.1",
"uglify-js": "^3.0.15"
}
}
9 changes: 5 additions & 4 deletions test/import_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ var exec = require('child_process').exec
, fs = require('fs')
, graph = require('levelgraph')
, level = require('level')
, n3 = require('../');
, n3 = require('../')
, rimraf = require('rimraf');

describe("CLI: import n3 file(s)", function() {

Expand All @@ -14,7 +15,7 @@ describe("CLI: import n3 file(s)", function() {
, import_stderr;

before(function(done) {
exec('./import.js -q ' + test_file_path + ' -o ' + test_db_path,
exec('node import.js -q ' + test_file_path + ' -o ' + test_db_path,
function (err, stdout, stderr) {
import_err = err;
import_stdout = stdout;
Expand All @@ -24,9 +25,9 @@ describe("CLI: import n3 file(s)", function() {
});

after(function(done) {
exec('rm -r import_test_db_0123',
function (err, stdout, stderr) {
rimraf('import_test_db_0123', function (err) {
if (err) return done(err);
console.log('import_test_db_0123 removed');
done();
});
});
Expand Down