Skip to content

Commit

Permalink
feat(editor-content): fix error with sonar #29872
Browse files Browse the repository at this point in the history
  • Loading branch information
nicobytes committed Sep 26, 2024
1 parent 3a4c065 commit e6a12ab
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 215 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { DotMessageService, DotUploadFileService } from '@dotcms/data-access';
import { DotCMSContentTypeField } from '@dotcms/dotcms-models';

import { DotEditContentService } from '../../../services/dot-edit-content.service';
import { FILE_FIELD_MOCK, NEW_FILE_MOCK } from '../../../utils/mocks';
import { DotEditContentFileFieldComponent } from '../dot-edit-content-file-field.component';
import { UIMessage } from '../models';
import { DotFileFieldUploadService } from '../services/upload-file/upload-file.service';
import { FileFieldStore } from '../store/file-field.store';
import { MessageServiceMock } from '../utils/mocks';
import { DotEditContentFileFieldComponent } from './dot-edit-content-file-field.component';
import { UIMessage } from './models';
import { DotFileFieldUploadService } from './services/upload-file/upload-file.service';
import { FileFieldStore } from './store/file-field.store';
import { MessageServiceMock } from './utils/mocks';

import { DotEditContentService } from '../../services/dot-edit-content.service';
import { BINARY_FIELD_MOCK, FILE_FIELD_MOCK, IMAGE_FIELD_MOCK, NEW_FILE_MOCK } from '../../utils/mocks';

type Args = DotEditContentFileFieldComponent & {
field: DotCMSContentTypeField;
Expand Down Expand Up @@ -89,6 +90,20 @@ export const FileField: Story = {
}
};

export const BinaryField: Story = {
args: {
value: '',
field: { ...BINARY_FIELD_MOCK }
}
};

export const ImageField: Story = {
args: {
value: '',
field: { ...IMAGE_FIELD_MOCK }
}
};

export const ResposiveFileField: Story = {
args: {
value: '',
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit e6a12ab

Please sign in to comment.