Skip to content

Commit f06ac99

Browse files
author
KIvanow
committed
RI-6231 - cleanup
1 parent 5204580 commit f06ac99

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

redisinsight/ui/src/slices/browser/rejson.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { createSlice, PayloadAction } from '@reduxjs/toolkit'
22
import axios, { AxiosError, CancelTokenSource } from 'axios'
3-
import JSONBigInt from 'json-bigint'
43

54
import { isNumber } from 'lodash'
65
import { ApiEndpoints } from 'uiSrc/constants'
@@ -352,7 +351,7 @@ export function fetchVisualisationResults(path = '.', forceRetrieve = false) {
352351
}
353352
)
354353

355-
if (isStatusSuccessful(status)) {
354+
if (isStatusSuccessful(status)) {
356355
return data
357356
}
358357
throw new Error(data.toString())

redisinsight/ui/src/slices/tests/browser/rejson.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ let store: typeof mockedStore
4242
let storeWithSelectedKey: typeof mockedStore
4343
let defaultData: GetRejsonRlResponseDto
4444

45-
const key = 'key'
46-
const path = '.'
47-
4845
beforeEach(() => {
4946
cleanup()
5047
store = cloneDeep(mockedStore)
@@ -375,6 +372,10 @@ describe('rejson slice', () => {
375372
describe('thunks', () => {
376373
describe('fetchReJSON', () => {
377374
it('call both fetchReJSON and loadRejsonBranchSuccess when fetch is successed', async () => {
375+
// Arrange
376+
const key = 'key'
377+
const path = '.'
378+
378379
const responsePayload = { data: defaultData, status: 200 }
379380

380381
apiService.post = jest.fn().mockResolvedValue(responsePayload)

0 commit comments

Comments
 (0)