Skip to content

Commit a88ab77

Browse files
committed
fix instancesHandlers
1 parent dddf509 commit a88ab77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redisinsight/ui/src/mocks/handlers/instances/instancesHandlers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ export const INSTANCES_MOCK: Instance[] = [
7272

7373
export const getDatabasesApiSpy = jest
7474
.fn()
75-
.mockImplementation(async (_req, res, ctx) =>
76-
res(ctx.status(200), ctx.json(INSTANCES_MOCK)),
75+
.mockImplementation(async () =>
76+
HttpResponse.json(INSTANCES_MOCK, { status: 200 }),
7777
)
7878

7979
const handlers: HttpHandler[] = [

0 commit comments

Comments
 (0)