Skip to content

Commit

Permalink
TASK: Fix jest test and fix PublishDropDown neos prop
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Jan 27, 2025
1 parent 3586459 commit 77e52c2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/neos-ui-validators/src/Count/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import countValidator from './index';
import {setupI18n} from "@neos-project/neos-ui-i18n";

Check failure on line 2 in packages/neos-ui-validators/src/Count/index.spec.js

View workflow job for this annotation

GitHub Actions / Code style

Strings must use singlequote

beforeAll(() => {
setupI18n('en-US', 'one,other', {});
});

test('2 element object should be valid for min:0 max: 10', () => {
const validatorOptions = {
Expand Down
5 changes: 5 additions & 0 deletions packages/neos-ui-validators/src/NumberRange/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import numberRangeValidator from './index';
import {setupI18n} from "@neos-project/neos-ui-i18n";

Check failure on line 2 in packages/neos-ui-validators/src/NumberRange/index.spec.js

View workflow job for this annotation

GitHub Actions / Code style

Strings must use singlequote

beforeAll(() => {
setupI18n('en-US', 'one,other', {});
});

test('0 for min: 0 max: 10 should be valid', () => {
const validatorOptions = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ import {Badge, Icon, DropDown} from '@neos-project/react-ui-components';
import {translate} from '@neos-project/neos-ui-i18n';
import {actions, selectors} from '@neos-project/neos-ui-redux-store';
import {PublishingMode, PublishingScope} from '@neos-project/neos-ui-redux-store/src/CR/Publishing';
import {neos} from '@neos-project/neos-ui-decorators';

const {publishableNodesSelector, publishableNodesInDocumentSelector, baseWorkspaceSelector, isWorkspaceReadOnlySelector, personalWorkspaceNameSelector} = selectors.CR.Workspaces;

import AbstractButton from './AbstractButton/index';
import WorkspaceSelector from './WorkspaceSelector/index';
import style from './style.module.css';

@neos()
@connect(state => ({
isSaving: state?.ui?.remote?.isSaving,
isPublishing: state?.cr?.publishing?.mode === PublishingMode.PUBLISH,
Expand Down

0 comments on commit 77e52c2

Please sign in to comment.