Skip to content

Commit eca9015

Browse files
committed
#RI-5162 - fix tests
1 parent 7f369f2 commit eca9015

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

redisinsight/ui/src/utils/test-utils.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ jest.mock('uiSrc/constants/recommendations', () => ({
253253

254254
// mock to not import routes
255255
jest.mock('uiSrc/utils/routing', () => ({
256+
...jest.requireActual('uiSrc/utils/routing'),
256257
getRedirectionPage: jest.fn(),
257258
}))
258259

@@ -281,7 +282,7 @@ const matchMediaMock = () => ({
281282

282283
Object.defineProperty(window, 'matchMedia', {
283284
writable: true,
284-
value: jest.fn().mockImplementation(query => matchMediaMock(query)),
285+
value: jest.fn().mockImplementation((query) => matchMediaMock(query)),
285286
})
286287

287288
export const getMswResourceURL = (path: string = '') => RESOURCES_BASE_URL.concat(path)

0 commit comments

Comments
 (0)