Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/course-libraries/CourseLibraries.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mockUseLibBlockMetadata.applyMock();

const searchParamsGetMock = jest.fn();
let axiosMock: MockAdapter;
let mockShowToast: (message: string, action?: ToastActionData | undefined) => void;
let mockShowToast: (message: string, action?: ToastActionData) => void;
let queryClient: QueryClient;

jest.mock('../studio-home/hooks', () => ({
Expand Down
2 changes: 1 addition & 1 deletion src/course-unit/preview-changes/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const render = (eventData?: LibraryChangesMessageData) => {
};

let axiosMock: MockAdapter;
let mockShowToast: (message: string, action?: ToastActionData | undefined) => void;
let mockShowToast: (message: string, action?: ToastActionData) => void;

describe('<IframePreviewLibraryXBlockChanges />', () => {
beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/library-authoring/add-content/AddContent.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const renderWithContainer = (containerId: string, containerType: 'unit' | 'secti
};

let axiosMock: MockAdapter;
let mockShowToast: (message: string, action?: ToastActionData | undefined) => void;
let mockShowToast: (message: string, action?: ToastActionData) => void;

describe('<AddContent />', () => {
beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/library-authoring/components/ComponentDeleter.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const renderArgs = {
),
};

let mockShowToast: { (message: string, action?: ToastActionData | undefined): void; mock?: any; };
let mockShowToast: { (message: string, action?: ToastActionData): void; mock?: any; };

describe('<ComponentDeleter />', () => {
beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/library-authoring/containers/ContainerDeleter.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const renderArgs = {
),
};

let mockShowToast: { (message: string, action?: ToastActionData | undefined): void; mock?: any; };
let mockShowToast: { (message: string, action?: ToastActionData): void; mock?: any; };

[
'unit' as const,
Expand Down
2 changes: 1 addition & 1 deletion src/library-authoring/containers/ContainerInfo.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const render = (
});
};
let axiosMock: MockAdapter;
let mockShowToast: { (message: string, action?: ToastActionData | undefined): void; mock?: any; };
let mockShowToast: { (message: string, action?: ToastActionData): void; mock?: any; };

[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const libraryTitle = mockContentLibrary.libraryData.title;

let axiosMock: MockAdapter;
let queryClient: QueryClient;
let mockShowToast: (message: string, action?: ToastActionData | undefined) => void;
let mockShowToast: (message: string, action?: ToastActionData) => void;

mockClipboardEmpty.applyMock();
mockGetContainerMetadata.applyMock();
Expand Down
2 changes: 1 addition & 1 deletion src/library-authoring/units/LibraryUnitPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const path = '/library/:libraryId/*';
const libraryTitle = mockContentLibrary.libraryData.title;

let axiosMock: MockAdapter;
let mockShowToast: (message: string, action?: ToastActionData | undefined) => void;
let mockShowToast: (message: string, action?: ToastActionData) => void;

mockClipboardEmpty.applyMock();
mockGetContainerMetadata.applyMock();
Expand Down