2b4ab10305
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.
2017-11-28 21:38:21 -02:00
31fafd8b7c
fixup
2017-05-30 05:29:51 +02:00
0276e15f04
chore: add print helper again and refactor some code
...
Expose the RedisClient directly instead of only being a property
2017-05-29 18:23:24 +02:00
b2e18344d9
chore: mark private variables as such and remove obsolete ones
2017-05-28 07:15:20 +02:00
8c63233968
feat: parse info data as numbers if possible and improve parsing
2017-05-28 01:45:19 +02:00
3065e2e7be
chore: refactor parts out of the index.js file
2017-05-26 18:45:52 +02:00
6ea202132b
feat: accept Map and Set and flatten arguments
2017-05-26 12:32:04 +02:00
6be5575c5b
chore: refactor codebase to promises
2017-05-19 06:14:29 +02:00
b2613b2270
test fixup
2017-05-06 08:16:19 +02:00
f1a7bcd735
chore: use standard
2017-05-06 07:06:52 +02:00
19f3d20b47
chore: remove support for UPPER_CASE commands
2017-05-06 01:49:48 +02:00
27ed4db537
feat: return channel number and channels from subscribe / unsubscribe calls
2017-05-06 01:49:47 +02:00
28afc33c9a
Remove snack_case and always use camelCase
2017-05-06 01:49:05 +02:00
78187142cb
Remove deprecated parser option
2017-05-06 01:49:04 +02:00
ce1678c778
Improve coverage; make tests ready for Redis 3.2
...
Add command sanity check
2016-04-29 04:10:23 +02:00
a857829a36
Improve error handling
...
Arguments are now passed to an command error in case they exist
An error is only emitted if that very same error is not already handled in a callback
2016-04-29 04:10:23 +02:00
3038c9043d
Make sure all individual handled command work in multi context the same
...
Fix quit possibly resulting in reconnections
2016-04-29 04:10:23 +02:00
5d12659583
Fix typos / comments
2016-04-29 04:10:23 +02:00
a9d565b8f4
Fix auth regression
...
Fixes #1028
2016-04-29 04:10:23 +02:00
d2b8f2f391
Add support for camelCase
...
Fixes missing `EXEC_BATCH` on multi
2016-04-29 04:10:23 +02:00
14170f9d02
Improve tests a bit
...
Reduce timeouts if possible
Extend timeouts if needed (windows tests need their time)
Don't expose the redis socket to others than the owner
Don't create the stunnel log
2016-04-01 11:42:22 +02:00
94e9f1fcfc
Replace jshint with eslint and add lots of rules
...
Fix eslint errors accordingly
2016-03-26 14:45:12 +01:00
7a5a4aa535
Fix pub sub mode
...
There is likely a better and more performant way to fix this but this works so far
and should be good enough to release and improve later.
Make test more robust
Add another test
2016-03-26 02:14:10 +01:00
7af90043c8
Improve test
2016-03-26 01:00:32 +01:00
eb9500bb9f
Fix redis 2.4 auth support
2016-03-16 23:15:21 +01:00
6598da5366
Indicate transmission errors
2016-03-15 03:56:47 +01:00
ff19663d9d
Remove code overhead
...
Add another domain test
Fix test on node 0.10
2016-03-15 03:56:36 +01:00
e48e1e845f
Windows fixes
...
Skip redis process spawn on windows for now
2016-03-07 02:03:10 +01:00
fb0eaf4d41
Unify auth handling
2016-03-01 17:59:17 +01:00
5ef24a90b6
Add tests and improve older tests
2015-12-31 06:00:20 +01:00
8bf794fb36
Stricten tests by always ending redis with .end(true) if possible
2015-11-22 16:56:54 +01:00
7718e219e9
Remove listener if not needed anymore and alawys end a client after a test
2015-10-29 15:04:47 +01:00
ed2fc95444
Fix should_buffer return values and empty .batch and .auth return value being sync
...
Fix test
2015-10-11 03:38:41 +02:00
6958c1854b
Increase the coverage by adding tests and fix a failing ready check
2015-09-21 02:38:27 +02:00
c60a3b65fe
Rename .command_used to .command and add the used command to more errors
2015-09-20 18:56:21 +02:00
d61d97e24e
Fix .auth not working properly
...
The arguments parameter was faulty andthe callback could have been triggered twice
2015-09-18 00:05:10 +02:00
0b8705abe9
Do not run all tests with every single connection (if one connection works, the others are going to be fine too)
2015-09-16 05:22:07 +02:00
c269b7539c
Check that the password is from type string
2015-09-15 22:35:25 +02:00
ebbb0146b9
Fix auth emitting the error even though a callback is present
...
Fix auth manipulating the returned error
And this is also removing some dead code
2015-09-15 03:50:47 +02:00
1a06cfb6ec
Add .command_used to errors thrown by the parser
2015-09-15 03:50:46 +02:00
be708906fa
add test for providing auth after client is created
2015-09-13 22:21:03 -07:00
a0bf9e2314
tweaks based on running test-suite on Windows on an older Redis
2015-09-12 18:29:50 -07:00
b4da975785
prep for getting tests to work on appveyor
2015-09-12 18:24:14 -07:00
9acbd6c860
Add simicolons and remove trailing whitespace
2015-09-12 18:56:49 +02:00
06c5f1922b
Add jshint and fix errors accordingly (including broken tests)
2015-09-12 18:56:49 +02:00
a5938f3ade
Refactor the test suite and remove duplicated code
2015-09-01 23:28:41 +02:00
417c8c1247
had descriptions of tests swapped around
2015-08-29 14:55:01 -07:00
65db5dbefe
Clarify this one test is only applicable for IPv4.
2015-08-15 11:51:37 -05:00
a0832c3744
slight refactor from code review
...
smoke test large list of commands
ported more tests to mocha, some slight cleanup in tests
move sinon and uuid to dev dependencies
finished porting eval tests over to mocha
rebased mocha testing branch with master
ported client and script tests
ported watch tests
ported detect_buffers tests
ported unref tests
ported auth tests over to mocha
ported idle and no_delay tests
ported hlen, hset
continuing marching forward
ported hincrby, sinter, sort, pubsub tests. improved logic in redis-process, I was still occasionally having issues where redis failed to exit.
switch back to default test command
ported del, exists, hlen, keys, randomkey, type
cleanup based on what I've learned so far from refactor. we now start and stop redis less often. moved tests to their final resting place
finished porting node_redis client tests
ported hgetall, mget, msetnx, rename, renamenx, setex, setnx
ported hgetall, mget, msetnx, rename, renamenx, setex, setnx
ported queue tests to mocha
amalgamated some of the helper logic
ported sadd, scard, sismember, srem, utf-8
2015-08-14 21:31:18 -07:00