Skip to content

Commit 86c2aa8

Browse files
fix(api): update test files to use correct type constants
Co-Authored-By: gregorywong@box.com <gregorywong@box.com>
1 parent 319005b commit 86c2aa8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/elements/content-explorer/__tests__/CellRenderer.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22
import userEvent from '@testing-library/user-event';
33
import { render, screen } from '../../../test-utils/testing-library';
44
import dateCellRenderer from '../dateCellRenderer';
5-
import { ITEM_TYPE_FILE } from '../../../constants';
5+
import { TYPE_FILE } from '../../../constants';
66
import type { BoxItem } from '../../../common/types/core';
77

88
import headerCellRenderer, { HeaderCellRendererProps } from '../headerCellRenderer';
@@ -23,7 +23,7 @@ const mockItem: BoxItem = {
2323
can_rename: true,
2424
can_share: true,
2525
},
26-
type: ITEM_TYPE_FILE,
26+
type: TYPE_FILE,
2727
};
2828

2929
describe('elements/content-explorer/CellRenderer', () => {

src/elements/content-explorer/__tests__/DeleteConfirmationDialog.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import * as React from 'react';
22
import userEvent from '@testing-library/user-event';
33
import { render, screen } from '../../../test-utils/testing-library';
44
import DeleteConfirmationDialog, { DeleteConfirmationDialogProps } from '../DeleteConfirmationDialog';
5-
import { ITEM_TYPE_FILE, ITEM_TYPE_FOLDER } from '../../../constants';
5+
import { TYPE_FILE, TYPE_FOLDER } from '../../../constants';
66

7-
const mockItem = { id: '123', type: ITEM_TYPE_FILE, name: 'Test File' };
8-
const mockFolderItem = { id: '456', type: ITEM_TYPE_FOLDER, name: 'Test Folder' };
7+
const mockItem = { id: '123', type: TYPE_FILE, name: 'Test File' };
8+
const mockFolderItem = { id: '456', type: TYPE_FOLDER, name: 'Test Folder' };
99

1010
jest.mock('react-modal', () => {
1111
return jest.fn(({ children }) => <div aria-label="Delete">{children}</div>);

0 commit comments

Comments
 (0)