From c77d31b3fc1c89d25bbaf47013e5c1a98b4ab7f4 Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Fri, 29 Sep 2023 13:03:48 +0200 Subject: [PATCH] chore: prettier --- src/pipeline.js | 6 +++--- test/integration/commands/rpoplpush.js | 4 ++-- test/integration/multi.js | 8 +++----- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/pipeline.js b/src/pipeline.js index 01d1212c8..1e17ff6c5 100644 --- a/src/pipeline.js +++ b/src/pipeline.js @@ -13,10 +13,10 @@ class Pipeline { this.copyCommands() Object.defineProperty(this, 'length', { - get () { - return this.batch.length; + get() { + return this.batch.length }, - }); + }) } copyCommands() { diff --git a/test/integration/commands/rpoplpush.js b/test/integration/commands/rpoplpush.js index 2d25a12fd..1f8ee6307 100644 --- a/test/integration/commands/rpoplpush.js +++ b/test/integration/commands/rpoplpush.js @@ -112,8 +112,8 @@ runTwinSuite('rpoplpush', (command, equals) => { }, }) - const result = await redis[command]('foo', 'foo', 'LEFT', 'RIGHT'); - expect(result).toBe('2'); + const result = await redis[command]('foo', 'foo', 'LEFT', 'RIGHT') + expect(result).toBe('2') const list = await redis.lrange('foo', 0, -1) expect(list).toEqual(['2', '1']) diff --git a/test/integration/multi.js b/test/integration/multi.js index e0cc118cc..8a26d2bc8 100644 --- a/test/integration/multi.js +++ b/test/integration/multi.js @@ -15,15 +15,13 @@ describe('multi', () => { expect(redis.batch.batch[1]).toEqual(expect.any(Function)) }) - it('should map batch length to length in pipeline',() => { + it('should map batch length to length in pipeline', () => { const redis = new Redis() const pipeline = redis.pipeline() - pipeline - .incr('user_next') - .incr('post_next'); + pipeline.incr('user_next').incr('post_next') - expect(pipeline.length).toBe(2); + expect(pipeline.length).toBe(2) }) it('allows for pipelining methods', () => {