Skip to content

Commit 5e538f6

Browse files
committed
Merge branch 'v2' of github.com:expressjs/session into node18+
2 parents 77b3bc6 + 3e84825 commit 5e538f6

File tree

6 files changed

+8
-30
lines changed

6 files changed

+8
-30
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ coverage
33
node_modules
44
npm-debug.log
55
package-lock.json
6+
/test/fixtures/server.crt
7+
/test/fixtures/server.key

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"scripts": {
4141
"lint": "eslint . && node ./scripts/lint-readme.js",
42-
"test": "mocha --require test/support/env --check-leaks --no-exit --reporter spec test/",
42+
"test": "./test/support/gencert.sh && mocha --require test/support/env --check-leaks --no-exit --reporter spec test/",
4343
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
4444
"test-cov": "nyc npm test",
4545
"version": "node scripts/version-history.js && git add HISTORY.md"

test/fixtures/.gitkeep

Whitespace-only changes.

test/fixtures/server.crt

-14
This file was deleted.

test/fixtures/server.key

-15
This file was deleted.

test/support/gencert.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#! /bin/sh
2+
set -ex
3+
4+
openssl req -x509 -nodes -newkey rsa:2048 -keyout ./test/fixtures/server.key -out ./test/fixtures/server.crt -days 3650 \
5+
-subj "/C=US/ST=Illinois/L=Chicago/O=node-express-session/CN=express-session.local"

0 commit comments

Comments
 (0)