From 7b7292f2150ff3f41fed45e02cbac961df24db98 Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Wed, 29 Mar 2023 00:16:45 +0200 Subject: [PATCH] chore: fix test --- test/integration/commands/set.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/test/integration/commands/set.js b/test/integration/commands/set.js index 392f95247..0e6ebe5bd 100644 --- a/test/integration/commands/set.js +++ b/test/integration/commands/set.js @@ -57,11 +57,7 @@ runTwinSuite('set', (command, equals) => { }) it('should return null if NX is specified and the key already exists', async () => { - const redis = new Redis({ - data: { - foo: 'bar', - }, - }) + const redis = new Redis() await redis[command]('foo', 'bar') expect(await redis[command]('foo', 1, 'NX')).toBe(null) @@ -76,11 +72,8 @@ runTwinSuite('set', (command, equals) => { }) it('should return previous value if GET is specified and the key already exists', async () => { - const redis = new Redis({ - data: { - foo: 'bar', - }, - }) + const redis = new Redis() + await redis[command]('foo', 'bar') expect(equals(await redis[command]('foo', 1, 'GET'), 'bar')).toBe(true) redis.disconnect()