Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Removed deprecated code and fixed tests for node 0.8 #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 1 addition & 5 deletions test.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 1 addition & 1 deletion test/test-cookie-sessions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var sessions = require('cookie-sessions');
var sessions = require('../lib/cookie-sessions');


exports['split'] = function(test){
Expand Down