Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
fix(test): use Local and S3 packed items to include permission
Browse files Browse the repository at this point in the history
  • Loading branch information
ReidyT committed Sep 17, 2024
1 parent 596dc7f commit 55a24de
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions cypress/fixtures/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import {
LocalFileItemFactory,
MaxWidth,
MimeTypes,
S3FileItemFactory,
PackedLocalFileItemFactory,
PackedS3FileItemFactory,
buildFileExtra,
buildS3FileExtra,
} from '@graasp/sdk';
Expand All @@ -18,7 +19,7 @@ export const VIDEO_FILEPATH = 'files/video.mp4';
export const TEXT_FILEPATH = 'files/sometext.txt';

export const IMAGE_ITEM_DEFAULT: LocalFileItemForTest = {
...LocalFileItemFactory({
...PackedLocalFileItemFactory({
id: 'bd5519a2-5ba9-4305-b221-185facbe6a99',
name: 'icon.png',
description: 'a default image description',
Expand Down Expand Up @@ -70,7 +71,7 @@ export const IMAGE_ITEM_DEFAULT_WITH_MAX_WIDTH: LocalFileItemForTest = {
};

export const VIDEO_ITEM_DEFAULT: LocalFileItemForTest = {
...LocalFileItemFactory({
...PackedLocalFileItemFactory({
id: 'qd5519a2-5ba9-4305-b221-185facbe6a99',
name: 'video.mp4',
description: 'a default video description',
Expand All @@ -95,7 +96,7 @@ export const VIDEO_ITEM_DEFAULT: LocalFileItemForTest = {
};

export const PDF_ITEM_DEFAULT: LocalFileItemForTest = {
...LocalFileItemFactory({
...PackedLocalFileItemFactory({
id: 'cd5519a2-5ba9-4305-b221-185facbe6a99',
name: 'doc.pdf',
description: 'a default pdf description',
Expand Down Expand Up @@ -125,7 +126,7 @@ export const ZIP_DEFAULT: ZIPInternalItem = {
};

export const IMAGE_ITEM_S3: S3FileItemForTest = {
...S3FileItemFactory({
...PackedS3FileItemFactory({
id: 'ad5519a2-5ba9-4305-b221-185facbe6a99',
name: 'icon.png',
description: 'a default image description',
Expand All @@ -150,7 +151,7 @@ export const IMAGE_ITEM_S3: S3FileItemForTest = {
};

export const VIDEO_ITEM_S3: S3FileItemForTest = {
...S3FileItemFactory({
...PackedS3FileItemFactory({
id: 'qd5519a2-5ba9-4305-b221-185facbe6a93',
name: 'video.mp4',
description: 'a default video description',
Expand All @@ -175,7 +176,7 @@ export const VIDEO_ITEM_S3: S3FileItemForTest = {
};

export const PDF_ITEM_S3: S3FileItemForTest = {
...S3FileItemFactory({
...PackedS3FileItemFactory({
id: 'bd5519a2-5ba9-4305-b221-185facbe6a99',
name: 'doc.pdf',
description: 'a default pdf description',
Expand Down

0 comments on commit 55a24de

Please sign in to comment.