Refactor imports (#470)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import {
|
||||
getDisplayedDate,
|
||||
setDisplayedDateAndRange,
|
||||
calendarRangeManager,
|
||||
getDisplayedCalendarRange,
|
||||
} from "../../src/utils/CalendarRangeManager";
|
||||
getDisplayedDate,
|
||||
setDisplayedDateAndRange,
|
||||
} from "@/utils/CalendarRangeManager";
|
||||
|
||||
describe("CalendarRangeManager", () => {
|
||||
beforeEach(() => {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import type { AppStore, RootState } from "@/app/store";
|
||||
import { setupStore } from "@/app/store";
|
||||
import { TwakeMuiThemeProvider } from "@linagora/twake-mui";
|
||||
import type { RenderOptions } from "@testing-library/react";
|
||||
import { render } from "@testing-library/react";
|
||||
import React, { PropsWithChildren } from "react";
|
||||
import { Provider } from "react-redux";
|
||||
import { MemoryRouter } from "react-router-dom";
|
||||
import { I18nContext } from "twake-i18n";
|
||||
import { TwakeMuiThemeProvider } from "@linagora/twake-mui";
|
||||
import type { AppStore, RootState } from "../../src/app/store";
|
||||
import { setupStore } from "../../src/app/store";
|
||||
interface ExtendedRenderOptions extends Omit<RenderOptions, "queries"> {
|
||||
preloadedState?: Partial<RootState>;
|
||||
store?: AppStore;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getInitials, stringToGradient } from "../../src/utils/avatarUtils";
|
||||
import { getInitials, stringToGradient } from "@/utils/avatarUtils";
|
||||
|
||||
jest.mock("@linagora/twake-mui", () => ({
|
||||
nameToColor: jest.fn((name: string) => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getCalendarVisibility } from "../../src/components/Calendar/utils/calendarUtils";
|
||||
import { getCalendarVisibility } from "@/components/Calendar/utils/calendarUtils";
|
||||
|
||||
interface AclEntry {
|
||||
privilege: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getCalendarRange } from "../../src/utils/dateUtils";
|
||||
import { getCalendarRange } from "@/utils/dateUtils";
|
||||
|
||||
describe("getCalendarRange", () => {
|
||||
it("Nov 2025 (5 weeks): 2025-10-27 to 2025-11-30", () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { findCalendarById } from "../../src/utils/findCalendarById";
|
||||
import { Calendar } from "../../src/features/Calendars/CalendarTypes";
|
||||
import { RootState } from "../../src/app/store";
|
||||
import { RootState } from "@/app/store";
|
||||
import { Calendar } from "@/features/Calendars/CalendarTypes";
|
||||
import { findCalendarById } from "@/utils";
|
||||
|
||||
describe("findCalendarById", () => {
|
||||
const mockCalendar1: Calendar = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { getUserDisplayName } from "../../src/utils/userUtils";
|
||||
import { userData } from "../../src/features/User/userDataTypes";
|
||||
import { userData } from "@/features/User/userDataTypes";
|
||||
import { getUserDisplayName } from "@/utils/userUtils";
|
||||
|
||||
describe("userUtils", () => {
|
||||
describe("getUserDisplayName", () => {
|
||||
|
||||
Reference in New Issue
Block a user