You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
chore - remove standard and use individual config
Standard is not as up to date and still uses a old eslint version. Instead, use the airbnb default with a couple of modifications. All required changes are included.
This commit is contained in:
@@ -5,13 +5,14 @@ const config = require('./lib/config')
|
||||
const fs = require('fs')
|
||||
const helper = require('./helper')
|
||||
const path = require('path')
|
||||
const redis = config.redis
|
||||
|
||||
const { redis } = config
|
||||
const utils = require('../lib/utils')
|
||||
|
||||
const tlsOptions = {
|
||||
servername: 'redis.js.org',
|
||||
rejectUnauthorized: true,
|
||||
ca: [ String(fs.readFileSync(path.resolve(__dirname, './conf/redis.js.org.cert'))) ]
|
||||
ca: [String(fs.readFileSync(path.resolve(__dirname, './conf/redis.js.org.cert')))]
|
||||
}
|
||||
|
||||
const tlsPort = 6380
|
||||
@@ -109,7 +110,7 @@ describe('TLS connection tests', () => {
|
||||
it('fails to connect because the cert is not correct', function () {
|
||||
if (skip) this.skip()
|
||||
const faultyCert = utils.clone(tlsOptions)
|
||||
faultyCert.ca = [ String(fs.readFileSync(path.resolve(__dirname, './conf/faulty.cert'))) ]
|
||||
faultyCert.ca = [String(fs.readFileSync(path.resolve(__dirname, './conf/faulty.cert')))]
|
||||
client = redis.createClient({
|
||||
host: 'localhost',
|
||||
connectTimeout: 1000,
|
||||
|
Reference in New Issue
Block a user