File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 3939 },
4040 "scripts" : {
4141 "lint" : " eslint . && node ./scripts/lint-readme.js" ,
42- "test" : " test/support/gencert.sh && mocha --require test/support/env --check-leaks --bail --no-exit --reporter spec test/" ,
42+ "test" : " bash -c ' test/support/gencert.sh' && mocha --require test/support/env --check-leaks --bail --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"
Original file line number Diff line number Diff line change 11#! /bin/sh
2- set -ex
2+ set -e
3+
4+ # Detect OS
5+ OS=" $( uname -s) "
6+
7+ # Define file paths
8+ KEY_PATH=" ./test/fixtures/server.key"
9+ CERT_PATH=" ./test/fixtures/server.crt"
10+ SUBJ=" /C=US/ST=Illinois/L=Chicago/O=node-express-session/CN=express-session.local"
11+
12+ if [[" $OS " == " MINGW" * || " $OS " == " MSYS" * ]]; then
13+ SUBJ=" \\ C=US/ST=Illinois/L=Chicago/O=node-express-session/CN=express-session.local"
14+ fi
315
416openssl 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 "
17+ -subj " $SUBJ "
You can’t perform that action at this time.
0 commit comments