World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[MINOR] test(web-v2): Restore the refreshToken test's imports (#15144)
Bharath Krishnaa1035fd5d0f3
diff --git a/web-v2/web/src/lib/store/auth/index.test.js b/web-v2/web/src/lib/store/auth/index.test.jsindex c3a50281c6..d3269ba48d 100644--- a/web-v2/web/src/lib/store/auth/index.test.js+++ b/web-v2/web/src/lib/store/auth/index.test.js@@ -18,13 +18,22 @@*/import { beforeEach, describe, expect, it, vi } from 'vitest'-import authReducer, { getAuthMe, setAuthUser } from '@/lib/store/auth'+import { configureStore } from '@reduxjs/toolkit'+import { loginApi } from '@/lib/api/auth'+import authReducer, { getAuthMe, refreshToken, setAuthUser } from '@/lib/store/auth'// Reducer tests do not need the HTTP client's React session provider dependencies.vi.mock('@/lib/utils/axios', () => ({defHttp: { get: vi.fn(), post: vi.fn() }}))+vi.mock('@/lib/api/auth', () => ({+ getAuthConfigsApi: vi.fn(),+ getAuthMeApi: vi.fn(),+ loginApi: vi.fn(),+ basicLoginApi: vi.fn()+}))+describe('auth store', () => {beforeEach(() => {localStorage.clear()