diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/package.json b/package.json index daddbdb..0e5724b 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,9 @@ { "type" : "git" , "url" : "http://github.com/caolan/cookie-sessions.git" } +, "scripts" : + { "test": "./test.js" + } , "bugs" : { "url" : "http://github.com/caolan/cookie-sessions/issues" } , "licenses" : [ { "type" : "MIT" diff --git a/test.js b/test.js index f41d154..47b3532 100755 --- a/test.js +++ b/test.js @@ -1,11 +1,7 @@ #!/usr/local/bin/node -require.paths.push(__dirname); -require.paths.push(__dirname + '/deps'); -require.paths.push(__dirname + '/lib'); - try { - var testrunner = require('nodeunit').testrunner; + var testrunner = require('./deps/nodeunit').testrunner; } catch(e) { var sys = require('sys'); diff --git a/test/test-cookie-sessions.js b/test/test-cookie-sessions.js index e05026c..6d93d35 100644 --- a/test/test-cookie-sessions.js +++ b/test/test-cookie-sessions.js @@ -1,4 +1,4 @@ -var sessions = require('cookie-sessions'); +var sessions = require('../lib/cookie-sessions'); exports['split'] = function(test){