[#4] fix test and imports
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { clientConfig } from "../../../src/features/User/oidcAuth";
|
import { clientConfig } from "../../../src/features/User/oidcAuth";
|
||||||
import getOpenPaasUser from "../../../src/features/User/userAPI";
|
import { getOpenPaasUser } from "../../../src/features/User/userAPI";
|
||||||
import { api } from "../../../src/utils/apiUtils";
|
import { api } from "../../../src/utils/apiUtils";
|
||||||
|
|
||||||
jest.mock("../../../src/utils/apiUtils");
|
jest.mock("../../../src/utils/apiUtils");
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { createAsyncThunk, createSlice, PayloadAction } from "@reduxjs/toolkit";
|
|||||||
import { Calendars } from "./CalendarTypes";
|
import { Calendars } from "./CalendarTypes";
|
||||||
import { CalendarEvent } from "../Events/EventsTypes";
|
import { CalendarEvent } from "../Events/EventsTypes";
|
||||||
import { getCalendar, getCalendars } from "./CalendarApi";
|
import { getCalendar, getCalendars } from "./CalendarApi";
|
||||||
import getOpenPaasUser, { getUserDetails } from "../User/userAPI";
|
import { getOpenPaasUser, getUserDetails } from "../User/userAPI";
|
||||||
import { parseCalendarEvent } from "../Events/eventUtils";
|
import { parseCalendarEvent } from "../Events/eventUtils";
|
||||||
import { deleteEvent, putEvent } from "../Events/EventApi";
|
import { deleteEvent, putEvent } from "../Events/EventApi";
|
||||||
import { formatDateToYYYYMMDDTHHMMSS } from "../../utils/dateUtils";
|
import { formatDateToYYYYMMDDTHHMMSS } from "../../utils/dateUtils";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
|
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
|
||||||
import { userData, userOrganiser } from "./userDataTypes";
|
import { userData, userOrganiser } from "./userDataTypes";
|
||||||
import getOpenPaasUser from "./userAPI";
|
import { getOpenPaasUser } from "./userAPI";
|
||||||
|
|
||||||
export const getOpenPaasUserDataAsync = createAsyncThunk<any>(
|
export const getOpenPaasUserDataAsync = createAsyncThunk<any>(
|
||||||
"user/getOpenPaasUserData",
|
"user/getOpenPaasUserData",
|
||||||
|
|||||||
Reference in New Issue
Block a user