File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ var debug = require('./logging').settings;
99module . exports = params ;
1010
1111function params ( argv ) {
12+ argv = argv || { } ;
1213 var opts = { } ;
1314
1415 // From input
Original file line number Diff line number Diff line change 5757 "scripts" : {
5858 "start" : " node bin/ldnode.js" ,
5959 "test" : " DEBUG='ldnode:*' ./node_modules/mocha/bin/mocha ./test/*.js" ,
60- "test-acl" : " ./node_modules/mocha/bin/mocha ./test/secure-test.js"
60+ "test-acl" : " ./node_modules/mocha/bin/mocha ./test/secure-test.js" ,
61+ "test-params" : " ./node_modules/mocha/bin/mocha ./test/params.js"
6162 },
6263 "bin" : {
6364 "ldnode" : " ./bin/ldnode.js"
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ var $rdf = require('rdflib');
55var request = require ( 'request' ) ;
66var S = require ( 'string' ) ;
77var supertest = require ( 'supertest' ) ;
8+ var ldnode = require ( '../index' ) ;
89
910describe ( 'ACL' , function ( ) {
1011 this . timeout ( 10000 ) ;
@@ -13,7 +14,6 @@ describe('ACL', function() {
1314 var ns = require ( '../vocab/ns.js' ) . ns ;
1415 var address = 'https://localhost:3456/test/' ;
1516
16- var ldnode = require ( '../index' ) ;
1717 var ldp = ldnode . createServer ( {
1818 uri : address ,
1919 base : __dirname ,
You can’t perform that action at this time.
0 commit comments