Skip to content

Commit

Permalink
silence the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
taraepp committed Nov 8, 2024
1 parent 482411f commit 28cbc2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions services/common/src/components/forms/RenderFileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export const FileUpload: FC<FileUploadProps> = ({
)
) {
notification.error({
message: `Failed to upload ${file && file.name ? file.name : ""}: ${errorMessage ? errorMessage : err
message: `Failed to upload ${file?.name ?? ""}: ${errorMessage ?? err
}`,
duration: 10,
});
Expand Down Expand Up @@ -252,7 +252,7 @@ export const FileUpload: FC<FileUploadProps> = ({
}

notification.error({
message: `Failed to upload ${file && file.name ? file.name : ""}: ${response.data.status
message: `Failed to upload ${file?.name ?? ""}: ${response.data.status
}`,
duration: 10,
});
Expand Down
6 changes: 4 additions & 2 deletions services/common/src/components/projects/projectUtils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ TEST_PARAMETERS.forEach(

enumValues.forEach((status) => {
it(`Enum value ${status} should be included in testing`, () => {
expect(coreStatuses.includes(status)).toBe(true);
expect(msStatuses.includes(status)).toBe(true);
const coreIncludes = coreStatuses.includes(status);
const msIncludes = msStatuses.includes(status);
expect(coreIncludes).toBe(true);
expect(msIncludes).toBe(true);
});
});

Expand Down

0 comments on commit 28cbc2d

Please sign in to comment.