From 00615cceac211ed721344bd3ea5159e0c6bcbf68 Mon Sep 17 00:00:00 2001 From: Luke Plaster Date: Fri, 26 Jul 2013 14:42:26 +0200 Subject: [PATCH 1/2] Added .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules From e379dc37ddb36d6805ae0ca275e9e8a207b248d0 Mon Sep 17 00:00:00 2001 From: Luke Plaster Date: Fri, 26 Jul 2013 14:44:10 +0200 Subject: [PATCH 2/2] Removed deprecated code and fixed up some things to make the tests work with node 0.8.23 --- package.json | 3 +++ test.js | 6 +----- test/test-cookie-sessions.js | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) 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){