Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-Torrent committed Dec 10, 2021
1 parent 5bfcd88 commit 0bc7b88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions cypress/fixtures/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const IMAGE_ITEM_S3 = {
extra: buildS3FileExtra({
key: 'files/icon.png', // for testing
size: 32439,
contenttype: 'image/png',
mimetype: 'image/png',
}),
};

Expand All @@ -91,9 +91,9 @@ export const VIDEO_ITEM_S3 = {
createdAt: '2021-03-16T16:00:50.968Z',
updatedAt: '2021-03-16T16:00:52.655Z',
extra: buildS3FileExtra({
key: 'files/video.mp4', // for testing
path: 'files/video.mp4', // for testing
size: 52345,
contenttype: MIME_TYPES.VIDEO[0],
mimetype: MIME_TYPES.VIDEO[0],
}),
};

Expand All @@ -107,8 +107,8 @@ export const PDF_ITEM_S3 = {
createdAt: '2021-03-16T16:00:50.968Z',
updatedAt: '2021-03-16T16:00:52.655Z',
extra: buildS3FileExtra({
key: 'files/doc.pdf', // for testing
path: 'files/doc.pdf', // for testing
size: 54321,
contenttype: MIME_TYPES.PDF[0],
mimetype: MIME_TYPES.PDF[0],
}),
};
2 changes: 1 addition & 1 deletion src/config/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const ITEMS_TABLE_ROW_CHECKBOX_CLASS = 'itemsTableRowCheckbox';
export const UPLOADER_ID = 'uploader';
export const UPLOADER_DROP_ZONE_ITEMS_CLASS = 'uppy-Root';
export const buildFileItemId = (id) => `file-${id}`;
export const buildS3FileItemId = (id) => `s3File-${id}`;
export const buildS3FileItemId = (id) => `file-${id}`;
export const ITEM_PANEL_ID = 'itemPanelMetadata';
export const ITEM_PANEL_NAME_ID = 'itemPanelName';
export const ITEM_PANEL_TABLE_ID = 'itemPanelTable';
Expand Down

0 comments on commit 0bc7b88

Please sign in to comment.