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:
@@ -2,7 +2,8 @@
|
||||
|
||||
const config = require('../lib/config')
|
||||
const helper = require('../helper')
|
||||
const redis = config.redis
|
||||
|
||||
const { redis } = config
|
||||
|
||||
describe('The \'hmset\' method', () => {
|
||||
helper.allTests((ip, args) => {
|
||||
@@ -20,25 +21,25 @@ describe('The \'hmset\' method', () => {
|
||||
return client.hgetall(hash).then(helper.isDeepEqual({
|
||||
'0123456789': 'abcdefghij',
|
||||
'some manner of key': 'a type of value',
|
||||
'otherTypes': '555'
|
||||
otherTypes: '555'
|
||||
}))
|
||||
})
|
||||
|
||||
it('handles object-style syntax', () => {
|
||||
client.hmset(hash, {'0123456789': 'abcdefghij', 'some manner of key': 'a type of value', 'otherTypes': 555}).then(helper.isString('OK'))
|
||||
client.hmset(hash, { '0123456789': 'abcdefghij', 'some manner of key': 'a type of value', otherTypes: 555 }).then(helper.isString('OK'))
|
||||
return client.hgetall(hash).then(helper.isDeepEqual({
|
||||
'0123456789': 'abcdefghij',
|
||||
'some manner of key': 'a type of value',
|
||||
'otherTypes': '555'
|
||||
otherTypes: '555'
|
||||
}))
|
||||
})
|
||||
|
||||
it('handles object-style syntax and the key being a number', () => {
|
||||
client.hmset(231232, {'0123456789': 'abcdefghij', 'some manner of key': 'a type of value', 'otherTypes': 555})
|
||||
client.hmset(231232, { '0123456789': 'abcdefghij', 'some manner of key': 'a type of value', otherTypes: 555 })
|
||||
return client.hgetall(231232).then(helper.isDeepEqual({
|
||||
'0123456789': 'abcdefghij',
|
||||
'some manner of key': 'a type of value',
|
||||
'otherTypes': '555'
|
||||
otherTypes: '555'
|
||||
}))
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user