@truedat/dq 8.7.0 → 8.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/components/ConceptRules.js +2 -3
- package/src/components/ConditionCell.js +9 -9
- package/src/components/ExecutionForm.js +1 -1
- package/src/components/ExecutionGroup.js +2 -2
- package/src/components/ExecutionGroupContent.js +4 -4
- package/src/components/ImplementationExecutionFilters.js +1 -1
- package/src/components/ImplementationFiltersLoader.js +2 -2
- package/src/components/ImplementationResultBar.js +1 -1
- package/src/components/ImplementationSearchResults.js +7 -7
- package/src/components/ImplementationStructureDelete.js +1 -1
- package/src/components/ImplementationStructuresNew.js +6 -3
- package/src/components/ImplementationSummary.js +2 -2
- package/src/components/Implementations.js +18 -11
- package/src/components/ImplementationsHeader.js +16 -21
- package/src/components/ImplementationsRoutes.js +7 -7
- package/src/components/MoveImplementation.js +1 -1
- package/src/components/NewBasicRuleImplementation.js +1 -1
- package/src/components/NewRuleImplementation.js +44 -44
- package/src/components/QualityEventError.js +11 -7
- package/src/components/RawContent.js +1 -1
- package/src/components/RemediationForm.js +1 -1
- package/src/components/RemediationPlan.js +2 -2
- package/src/components/Rule.js +1 -1
- package/src/components/RuleActions.js +1 -1
- package/src/components/RuleEventDecorator.js +1 -1
- package/src/components/RuleEventRow.js +1 -1
- package/src/components/RuleFilters.js +1 -1
- package/src/components/RuleFiltersLoader.js +1 -1
- package/src/components/RuleFormImplementations.js +1 -1
- package/src/components/RuleImplementationEventRow.js +1 -1
- package/src/components/RuleImplementationHistory.js +1 -1
- package/src/components/RuleImplementationProperties.js +2 -2
- package/src/components/RuleImplementationResults.js +2 -2
- package/src/components/RuleImplementationTabs.js +5 -5
- package/src/components/RuleImplementationsDownload.js +4 -4
- package/src/components/RuleImplementationsDownloadXlsx.js +6 -6
- package/src/components/RuleImplementationsLoader.js +1 -2
- package/src/components/RuleImplementationsTable.js +1 -1
- package/src/components/RuleResultDecorator.js +3 -3
- package/src/components/RuleResultDetails.js +1 -1
- package/src/components/RuleResultRemediationLoader.js +1 -1
- package/src/components/RuleResultSegments.js +3 -3
- package/src/components/RuleResultsTable.js +7 -7
- package/src/components/RuleRoutes.js +3 -3
- package/src/components/RuleSelectedFilters.js +3 -3
- package/src/components/RuleSelector.js +1 -1
- package/src/components/RuleSummary.js +3 -3
- package/src/components/Rules.js +4 -4
- package/src/components/RulesLoader.js +2 -2
- package/src/components/RulesRoutes.js +1 -1
- package/src/components/SimpleRuleImplementationsTable.js +1 -1
- package/src/components/Subscription.js +1 -1
- package/src/components/TaxonomySummary.js +1 -1
- package/src/components/__tests__/ConceptRules.spec.js +2 -2
- package/src/components/__tests__/ExecutionGroup.spec.js +3 -3
- package/src/components/__tests__/ExecutionGroupContent.spec.js +1 -1
- package/src/components/__tests__/ExecutionGroups.spec.js +1 -1
- package/src/components/__tests__/ExecutionGroupsTable.spec.js +1 -1
- package/src/components/__tests__/ImplementationExecutionFilters.spec.js +1 -1
- package/src/components/__tests__/ImplementationExecutions.spec.js +1 -1
- package/src/components/__tests__/ImplementationResultBar.spec.js +6 -6
- package/src/components/__tests__/ImplementationSearchResults.spec.js +3 -3
- package/src/components/__tests__/ImplementationStructureDelete.spec.js +1 -1
- package/src/components/__tests__/ImplementationStructureLink.spec.js +1 -1
- package/src/components/__tests__/ImplementationStructureLinksActions.spec.js +31 -27
- package/src/components/__tests__/ImplementationStructures.spec.js +6 -6
- package/src/components/__tests__/ImplementationStructuresNew.spec.js +2 -2
- package/src/components/__tests__/ImplementationSummary.spec.js +2 -2
- package/src/components/__tests__/Implementations.spec.js +1 -1
- package/src/components/__tests__/ImplementationsRoutes.spec.js +1 -1
- package/src/components/__tests__/ImplementationsUploadButton.spec.js +8 -8
- package/src/components/__tests__/MoveImplementation.spec.js +5 -5
- package/src/components/__tests__/NewBasicRuleImplementation.spec.js +4 -4
- package/src/components/__tests__/NewRuleImplementation.spec.js +14 -14
- package/src/components/__tests__/QualityRoutes.spec.js +1 -1
- package/src/components/__tests__/RemediationForm.spec.js +9 -3
- package/src/components/__tests__/RemediationPlan.spec.js +2 -2
- package/src/components/__tests__/RuleActions.spec.js +1 -1
- package/src/components/__tests__/RuleForm.spec.js +2 -2
- package/src/components/__tests__/RuleFormImplementations.spec.js +3 -3
- package/src/components/__tests__/RuleImplementation.spec.js +2 -2
- package/src/components/__tests__/RuleImplementationProperties.spec.js +3 -3
- package/src/components/__tests__/RuleImplementationResults.spec.js +2 -2
- package/src/components/__tests__/RuleImplementationsActions.spec.js +4 -4
- package/src/components/__tests__/RuleImplementationsLoader.spec.js +1 -1
- package/src/components/__tests__/RuleImplementationsOptions.spec.js +1 -1
- package/src/components/__tests__/RuleImplementationsTable.spec.js +3 -3
- package/src/components/__tests__/RuleResultDecorator.spec.js +15 -6
- package/src/components/__tests__/RuleResultDetails.spec.js +1 -1
- package/src/components/__tests__/RuleResultRemediations.spec.js +1 -1
- package/src/components/__tests__/RuleResultRoutes.spec.js +4 -4
- package/src/components/__tests__/RuleResultRow.spec.js +13 -13
- package/src/components/__tests__/RuleResultSegments.spec.js +1 -1
- package/src/components/__tests__/RuleRoutes.spec.js +1 -1
- package/src/components/__tests__/RuleRow.spec.js +4 -4
- package/src/components/__tests__/RuleSelectionForm.spec.js +5 -5
- package/src/components/__tests__/RuleSummary.spec.js +3 -3
- package/src/components/__tests__/Rules.spec.js +1 -1
- package/src/components/__tests__/RulesActions.spec.js +1 -1
- package/src/components/__tests__/RulesRoutes.spec.js +1 -1
- package/src/components/__tests__/Subscription.spec.js +11 -11
- package/src/components/ruleImplementationForm/DatasetForm.js +7 -7
- package/src/components/ruleImplementationForm/FieldModifier.js +5 -5
- package/src/components/ruleImplementationForm/FieldsGrid.js +2 -2
- package/src/components/ruleImplementationForm/FieldsGroup.js +1 -1
- package/src/components/ruleImplementationForm/FiltersField.js +4 -4
- package/src/components/ruleImplementationForm/FiltersFormGroup.js +3 -3
- package/src/components/ruleImplementationForm/FiltersGrid.js +3 -3
- package/src/components/ruleImplementationForm/FiltersGroup.js +2 -2
- package/src/components/ruleImplementationForm/InformationForm.js +1 -1
- package/src/components/ruleImplementationForm/RuleImplementationBasicForm.js +3 -3
- package/src/components/ruleImplementationForm/RuleImplementationForm.js +15 -11
- package/src/components/ruleImplementationForm/RuleImplementationRawForm.js +5 -5
- package/src/components/ruleImplementationForm/__tests__/FiltersFormGroup.spec.js +1 -1
- package/src/components/ruleImplementationForm/__tests__/FiltersGroup.spec.js +1 -1
- package/src/components/ruleImplementationForm/__tests__/InformationForm.spec.js +2 -2
- package/src/components/ruleImplementationForm/__tests__/LimitsForm.spec.js +12 -12
- package/src/components/ruleImplementationForm/__tests__/RuleImplementationBasicForm.spec.js +13 -13
- package/src/components/ruleImplementationForm/__tests__/RuleImplementationForm.spec.js +2 -2
- package/src/components/ruleImplementationForm/__tests__/RuleImplementationRawForm.spec.js +25 -25
- package/src/components/ruleImplementationForm/__tests__/ValueConditions.spec.js +1 -1
- package/src/components/ruleImplementationForm/operators.js +7 -7
- package/src/hooks/__tests__/useImplementations.spec.js +0 -1
- package/src/hooks/useImplementations.js +5 -5
- package/src/messages/en.js +0 -1
- package/src/messages/es.js +0 -1
- package/src/messages/index.js +1 -1
- package/src/reducers/__tests__/conceptRules.spec.js +3 -3
- package/src/reducers/__tests__/conceptRulesActions.spec.js +6 -6
- package/src/reducers/__tests__/implementationActions.spec.js +2 -2
- package/src/reducers/__tests__/implementationLinks.spec.js +4 -4
- package/src/reducers/__tests__/implementationsActions.spec.js +2 -2
- package/src/reducers/__tests__/previousRuleImplementationQuery.spec.js +6 -6
- package/src/reducers/__tests__/remediation.spec.js +7 -7
- package/src/reducers/__tests__/remediationActions.spec.js +3 -3
- package/src/reducers/__tests__/remediationLoading.spec.js +6 -6
- package/src/reducers/__tests__/resultsUploading.spec.js +2 -2
- package/src/reducers/__tests__/rule.spec.js +1 -1
- package/src/reducers/__tests__/ruleActiveFilters.spec.js +8 -8
- package/src/reducers/__tests__/ruleCount.spec.js +3 -3
- package/src/reducers/__tests__/ruleFiltersLoading.spec.js +2 -2
- package/src/reducers/__tests__/ruleImplementation.spec.js +2 -2
- package/src/reducers/__tests__/ruleImplementationActiveFilters.spec.js +11 -11
- package/src/reducers/__tests__/ruleImplementationCount.spec.js +5 -5
- package/src/reducers/__tests__/ruleImplementationCreating.spec.js +5 -5
- package/src/reducers/__tests__/ruleImplementationFilters.spec.js +4 -4
- package/src/reducers/__tests__/ruleImplementationLoading.spec.js +5 -3
- package/src/reducers/__tests__/ruleImplementationQuery.spec.js +7 -7
- package/src/reducers/__tests__/ruleImplementationRedirect.spec.js +13 -13
- package/src/reducers/__tests__/ruleImplementationSaving.spec.js +4 -2
- package/src/reducers/__tests__/ruleImplementationSelectedFilter.spec.js +7 -7
- package/src/reducers/__tests__/ruleImplementations.spec.js +4 -4
- package/src/reducers/__tests__/ruleImplementationsDownloading.spec.js +4 -4
- package/src/reducers/__tests__/ruleImplementationsLoading.spec.js +5 -5
- package/src/reducers/__tests__/ruleImplementationsPageSize.spec.js +4 -4
- package/src/reducers/__tests__/ruleQuery.spec.js +6 -6
- package/src/reducers/__tests__/ruleRedirect.spec.js +10 -10
- package/src/reducers/__tests__/rules.spec.js +2 -2
- package/src/reducers/__tests__/segmentResult.spec.js +3 -3
- package/src/reducers/__tests__/uploadImplementationsFile.spec.js +2 -2
- package/src/reducers/__tests__/uploadRulesFile.spec.js +2 -2
- package/src/reducers/conceptRulesActions.js +2 -2
- package/src/reducers/dqMessage.js +2 -2
- package/src/reducers/implementationsActions.js +1 -1
- package/src/reducers/previousRuleImplementationQuery.js +2 -2
- package/src/reducers/ruleFilters.js +1 -1
- package/src/reducers/ruleImplementationActiveFilters.js +1 -1
- package/src/reducers/ruleImplementationCount.js +1 -1
- package/src/reducers/ruleImplementationFilters.js +2 -2
- package/src/reducers/ruleImplementationRaw.js +1 -1
- package/src/reducers/ruleImplementationRedirect.js +3 -3
- package/src/reducers/ruleImplementationSelectedFilter.js +1 -1
- package/src/reducers/ruleImplementationsLoading.js +1 -1
- package/src/reducers/ruleImplementationsPageSize.js +1 -1
- package/src/reducers/ruleSelectedFilter.js +1 -1
- package/src/reducers/uploadingImplementationsFile.js +1 -1
- package/src/routines.js +23 -23
- package/src/sagas/__tests__/createExecutionGroup.spec.js +1 -1
- package/src/sagas/__tests__/createImplementationStructure.spec.js +1 -1
- package/src/sagas/__tests__/createRuleImplementation.spec.js +1 -1
- package/src/sagas/__tests__/deleteImplementationStructure.spec.js +1 -1
- package/src/sagas/__tests__/deleteRule.spec.js +1 -3
- package/src/sagas/__tests__/downloadRuleImplementations.spec.js +1 -1
- package/src/sagas/__tests__/fetchConceptRules.spec.js +1 -1
- package/src/sagas/__tests__/fetchRule.spec.js +1 -3
- package/src/sagas/__tests__/fetchRuleFilters.spec.js +5 -5
- package/src/sagas/__tests__/fetchRuleImplementation.spec.js +1 -1
- package/src/sagas/__tests__/fetchRuleImplementations.spec.js +1 -1
- package/src/sagas/__tests__/fetchRules.spec.js +4 -6
- package/src/sagas/__tests__/searchRuleImplementations.spec.js +3 -3
- package/src/sagas/__tests__/updateRule.spec.js +1 -3
- package/src/sagas/__tests__/updateRuleImplementation.spec.js +1 -1
- package/src/sagas/__tests__/uploadImplementations.spec.js +2 -2
- package/src/sagas/createExecutionGroup.js +1 -1
- package/src/sagas/createImplementationStructure.js +1 -1
- package/src/sagas/createRuleImplementation.js +2 -2
- package/src/sagas/deleteImplementationStructure.js +1 -1
- package/src/sagas/downloadRuleImplementations.js +1 -1
- package/src/sagas/downloadRuleImplementationsXlsx.js +1 -1
- package/src/sagas/fetchRuleImplementation.js +1 -1
- package/src/sagas/fetchRuleImplementationFilters.js +1 -1
- package/src/sagas/fetchRuleImplementations.js +2 -2
- package/src/sagas/searchRuleImplementations.js +2 -2
- package/src/sagas/updateRuleImplementation.js +1 -1
- package/src/sagas/uploadImplementations.js +1 -1
- package/src/sagas/uploadResults.js +1 -1
- package/src/sagas/uploadRules.js +1 -1
- package/src/selectors/__tests__/executionGroupsColumnsSelector.spec.js +2 -2
- package/src/selectors/__tests__/getImplementationStructureLinksColumns.spec.js +1 -1
- package/src/selectors/__tests__/getRuleImplementationSelectedFilterValues.spec.js +1 -1
- package/src/selectors/__tests__/ruleColumnsSelector.spec.js +1 -1
- package/src/selectors/datasetDefaultFiltersSelector.js +1 -1
- package/src/selectors/executionGroupsColumnsSelector.js +1 -1
- package/src/selectors/getExecutionGroupColumns.js +1 -1
- package/src/selectors/getExecutionQuery.js +1 -1
- package/src/selectors/getImplementationStructureLinksColumns.js +10 -10
- package/src/selectors/getImplementationStructures.js +10 -8
- package/src/selectors/getImplementationsExecution.js +1 -1
- package/src/selectors/getLinkedImplementationsToRulesColumns.js +1 -1
- package/src/selectors/getRuleAvailableFilters.js +2 -2
- package/src/selectors/getRuleFilterTypes.js +1 -1
- package/src/selectors/getRuleImplementationAvailableFilters.js +3 -3
- package/src/selectors/getRuleImplementationColumns.js +1 -1
- package/src/selectors/getRuleImplementationFilterTypes.js +1 -1
- package/src/selectors/getRuleImplementationForm.js +11 -11
- package/src/selectors/getRuleImplementationSelectedFilterActiveValues.js +2 -2
- package/src/selectors/getRuleImplementationSelectedFilterValues.js +2 -2
- package/src/selectors/getRuleImplementationSelectedFilters.js +1 -1
- package/src/selectors/getRuleSelectedFilterActiveValues.js +1 -1
- package/src/selectors/getRuleSelectedFilterValues.js +2 -2
- package/src/selectors/getRuleSelectedFilters.js +1 -1
- package/src/selectors/getSegmentResultsColumns.js +1 -1
- package/src/selectors/getStructureFields.js +3 -3
- package/src/selectors/ruleColumnsSelector.js +3 -3
- package/src/selectors/ruleResultsColumnsSelector.js +1 -1
- package/src/services/__tests__/encodeRawContent.spec.js +1 -1
- package/src/services/encodeRawContent.js +1 -1
|
@@ -15,7 +15,7 @@ import LimitsForm from "./LimitsForm";
|
|
|
15
15
|
import { areLimitsValid } from "./limitsValidation";
|
|
16
16
|
|
|
17
17
|
const SelectableDynamicForm = lazy(
|
|
18
|
-
() => import("@truedat/df/components/SelectableDynamicForm")
|
|
18
|
+
() => import("@truedat/df/components/SelectableDynamicForm"),
|
|
19
19
|
);
|
|
20
20
|
|
|
21
21
|
const DomainActionsLoader = ({ id, actions, onLoad }) => {
|
|
@@ -80,12 +80,12 @@ export const RuleImplementationRawForm = ({
|
|
|
80
80
|
useEffect(() => {
|
|
81
81
|
const currentDomainActions = _.flow(
|
|
82
82
|
_.find((domain) => domain.id === String(ruleImplementation.domain_id)),
|
|
83
|
-
_.pathOr([], "actions")
|
|
83
|
+
_.pathOr([], "actions"),
|
|
84
84
|
)(domains);
|
|
85
85
|
|
|
86
86
|
_.flow(
|
|
87
87
|
_.any((action) => action == "publishImplementation"),
|
|
88
|
-
setCanPublish
|
|
88
|
+
setCanPublish,
|
|
89
89
|
)(currentDomainActions);
|
|
90
90
|
|
|
91
91
|
return () => {
|
|
@@ -132,13 +132,13 @@ export const RuleImplementationRawForm = ({
|
|
|
132
132
|
key: id,
|
|
133
133
|
value: id,
|
|
134
134
|
text: externalId,
|
|
135
|
-
}))
|
|
135
|
+
})),
|
|
136
136
|
)(sources);
|
|
137
137
|
const databaseOptions = _.flow(
|
|
138
138
|
_.find({ id: selectedSourceId }),
|
|
139
139
|
_.path(["config", "databases", "value"]),
|
|
140
140
|
_.sortedUniq,
|
|
141
|
-
_.map((value) => ({ key: value, text: value, value }))
|
|
141
|
+
_.map((value) => ({ key: value, text: value, value })),
|
|
142
142
|
)(sources);
|
|
143
143
|
|
|
144
144
|
const getBannedWordsAndChars = (text) => {
|
|
@@ -74,7 +74,7 @@ describe("<FiltersGroup />", () => {
|
|
|
74
74
|
<Provider store={createStore(() => ({ structuresSiblings }))}>
|
|
75
75
|
<FiltersGroup {...props} />
|
|
76
76
|
</Provider>,
|
|
77
|
-
renderOpts
|
|
77
|
+
renderOpts,
|
|
78
78
|
);
|
|
79
79
|
await waitForLoad(rendered);
|
|
80
80
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -54,11 +54,11 @@ describe("<RuleImplementationForm />", () => {
|
|
|
54
54
|
it("matches the latest snapshot", async () => {
|
|
55
55
|
const { container, queryByText } = render(
|
|
56
56
|
<InformationForm {...props} />,
|
|
57
|
-
renderOpts
|
|
57
|
+
renderOpts,
|
|
58
58
|
);
|
|
59
59
|
await waitFor(() => expect(queryByText(/lazy/i)).not.toBeInTheDocument());
|
|
60
60
|
await waitFor(() =>
|
|
61
|
-
expect(queryByText(/loading/i)).not.toBeInTheDocument()
|
|
61
|
+
expect(queryByText(/loading/i)).not.toBeInTheDocument(),
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
expect(container).toMatchSnapshot();
|
|
@@ -40,10 +40,10 @@ describe("<LimitsForm />", () => {
|
|
|
40
40
|
|
|
41
41
|
const errorText = /empty_required/i;
|
|
42
42
|
expect(
|
|
43
|
-
rendered.getByText(/ruleImplementations.props.goal/i)
|
|
43
|
+
rendered.getByText(/ruleImplementations.props.goal/i),
|
|
44
44
|
).toHaveTextContent(errorText);
|
|
45
45
|
expect(
|
|
46
|
-
rendered.getByText(/ruleImplementations.props.minimum/i)
|
|
46
|
+
rendered.getByText(/ruleImplementations.props.minimum/i),
|
|
47
47
|
).toHaveTextContent(errorText);
|
|
48
48
|
});
|
|
49
49
|
|
|
@@ -63,10 +63,10 @@ describe("<LimitsForm />", () => {
|
|
|
63
63
|
|
|
64
64
|
const errorText = /invalid_number_format/i;
|
|
65
65
|
expect(
|
|
66
|
-
rendered.getByText(/ruleImplementations.props.goal/i)
|
|
66
|
+
rendered.getByText(/ruleImplementations.props.goal/i),
|
|
67
67
|
).toHaveTextContent(errorText);
|
|
68
68
|
expect(
|
|
69
|
-
rendered.getByText(/ruleImplementations.props.minimum/i)
|
|
69
|
+
rendered.getByText(/ruleImplementations.props.minimum/i),
|
|
70
70
|
).toHaveTextContent(errorText);
|
|
71
71
|
});
|
|
72
72
|
|
|
@@ -86,7 +86,7 @@ describe("<LimitsForm />", () => {
|
|
|
86
86
|
|
|
87
87
|
const errorText = /form.validation.max_goal/i;
|
|
88
88
|
expect(
|
|
89
|
-
rendered.getByText(/ruleImplementations.props.goal/i)
|
|
89
|
+
rendered.getByText(/ruleImplementations.props.goal/i),
|
|
90
90
|
).toHaveTextContent(errorText);
|
|
91
91
|
});
|
|
92
92
|
|
|
@@ -105,10 +105,10 @@ describe("<LimitsForm />", () => {
|
|
|
105
105
|
expect(rendered.container).toMatchSnapshot();
|
|
106
106
|
|
|
107
107
|
expect(
|
|
108
|
-
rendered.getByText(/ruleImplementations.props.goal/i)
|
|
108
|
+
rendered.getByText(/ruleImplementations.props.goal/i),
|
|
109
109
|
).toHaveTextContent(/form.validation.goal_less/i);
|
|
110
110
|
expect(
|
|
111
|
-
rendered.getByText(/ruleImplementations.props.minimum/i)
|
|
111
|
+
rendered.getByText(/ruleImplementations.props.minimum/i),
|
|
112
112
|
).toHaveTextContent(/form.validation.minimum_greater/i);
|
|
113
113
|
});
|
|
114
114
|
|
|
@@ -127,7 +127,7 @@ describe("<LimitsForm />", () => {
|
|
|
127
127
|
expect(rendered.container).toMatchSnapshot();
|
|
128
128
|
|
|
129
129
|
expect(
|
|
130
|
-
rendered.getByText(/ruleImplementations.props.minimum/i)
|
|
130
|
+
rendered.getByText(/ruleImplementations.props.minimum/i),
|
|
131
131
|
).toHaveTextContent(/form.validation.max_minimum/i);
|
|
132
132
|
});
|
|
133
133
|
|
|
@@ -146,10 +146,10 @@ describe("<LimitsForm />", () => {
|
|
|
146
146
|
expect(rendered.container).toMatchSnapshot();
|
|
147
147
|
|
|
148
148
|
expect(
|
|
149
|
-
rendered.getByText(/ruleImplementations.props.goal/i)
|
|
149
|
+
rendered.getByText(/ruleImplementations.props.goal/i),
|
|
150
150
|
).toHaveTextContent(/form.validation.goal.less_eq.minimum/i);
|
|
151
151
|
expect(
|
|
152
|
-
rendered.getByText(/ruleImplementations.props.minimum/i)
|
|
152
|
+
rendered.getByText(/ruleImplementations.props.minimum/i),
|
|
153
153
|
).toHaveTextContent(/form.validation.minimum.greater_eq.goal/i);
|
|
154
154
|
});
|
|
155
155
|
|
|
@@ -168,10 +168,10 @@ describe("<LimitsForm />", () => {
|
|
|
168
168
|
expect(rendered.container).toMatchSnapshot();
|
|
169
169
|
|
|
170
170
|
expect(
|
|
171
|
-
rendered.getByText(/ruleImplementations.props.goal/i)
|
|
171
|
+
rendered.getByText(/ruleImplementations.props.goal/i),
|
|
172
172
|
).toHaveTextContent(/form.validation.goal.less_eq.minimum/i);
|
|
173
173
|
expect(
|
|
174
|
-
rendered.getByText(/ruleImplementations.props.minimum/i)
|
|
174
|
+
rendered.getByText(/ruleImplementations.props.minimum/i),
|
|
175
175
|
).toHaveTextContent(/form.validation.minimum.greater_eq.goal/i);
|
|
176
176
|
});
|
|
177
177
|
});
|
|
@@ -63,11 +63,11 @@ const props = {
|
|
|
63
63
|
describe("<RuleImplementationBasicForm />", () => {
|
|
64
64
|
it("matches the latest snapshot", async () => {
|
|
65
65
|
const updatedProps = _.flow(_.set("ruleImplementation.domain_id", 1))(
|
|
66
|
-
props
|
|
66
|
+
props,
|
|
67
67
|
);
|
|
68
68
|
const rendered = render(
|
|
69
69
|
<RuleImplementationBasicForm {...updatedProps} />,
|
|
70
|
-
renderOpts
|
|
70
|
+
renderOpts,
|
|
71
71
|
);
|
|
72
72
|
await waitForLoad(rendered);
|
|
73
73
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -77,17 +77,17 @@ describe("<RuleImplementationBasicForm />", () => {
|
|
|
77
77
|
const updatedProps = _.flow(
|
|
78
78
|
_.set("ruleImplementation.domain_id", 1),
|
|
79
79
|
_.set("ruleImplementation.status", "published"),
|
|
80
|
-
_.set("ruleImplementation.implementation_key", "implementation_test")
|
|
80
|
+
_.set("ruleImplementation.implementation_key", "implementation_test"),
|
|
81
81
|
)(props);
|
|
82
82
|
const rendered = render(
|
|
83
83
|
<RuleImplementationBasicForm {...updatedProps} />,
|
|
84
|
-
renderOpts
|
|
84
|
+
renderOpts,
|
|
85
85
|
);
|
|
86
86
|
await waitForLoad(rendered);
|
|
87
87
|
expect(
|
|
88
88
|
rendered.queryByPlaceholderText(
|
|
89
|
-
/ruleImplementation.props.name.placeholder/i
|
|
90
|
-
)
|
|
89
|
+
/ruleImplementation.props.name.placeholder/i,
|
|
90
|
+
),
|
|
91
91
|
).not.toBeDisabled();
|
|
92
92
|
});
|
|
93
93
|
|
|
@@ -95,7 +95,7 @@ describe("<RuleImplementationBasicForm />", () => {
|
|
|
95
95
|
const updatedProps = _.flow(
|
|
96
96
|
_.set("ruleImplementation.domain_id", 1),
|
|
97
97
|
_.set("ruleImplementation.dfName", "template1"),
|
|
98
|
-
_.set("ruleImplementation.dfContent", { field1: "foo" })
|
|
98
|
+
_.set("ruleImplementation.dfContent", { field1: "foo" }),
|
|
99
99
|
)(props);
|
|
100
100
|
const customProps = {
|
|
101
101
|
...updatedProps,
|
|
@@ -103,7 +103,7 @@ describe("<RuleImplementationBasicForm />", () => {
|
|
|
103
103
|
|
|
104
104
|
const rendered = render(
|
|
105
105
|
<RuleImplementationBasicForm {...customProps} />,
|
|
106
|
-
renderOpts
|
|
106
|
+
renderOpts,
|
|
107
107
|
);
|
|
108
108
|
await waitForLoad(rendered);
|
|
109
109
|
await waitFor(() => {
|
|
@@ -115,7 +115,7 @@ describe("<RuleImplementationBasicForm />", () => {
|
|
|
115
115
|
const updatedProps = _.flow(
|
|
116
116
|
_.set("ruleImplementation.domain_id", 1),
|
|
117
117
|
_.set("ruleImplementation.dfName", "template1"),
|
|
118
|
-
_.set("ruleImplementation.dfContent", { field1: "foo" })
|
|
118
|
+
_.set("ruleImplementation.dfContent", { field1: "foo" }),
|
|
119
119
|
)(props);
|
|
120
120
|
const customProps = {
|
|
121
121
|
...updatedProps,
|
|
@@ -124,25 +124,25 @@ describe("<RuleImplementationBasicForm />", () => {
|
|
|
124
124
|
|
|
125
125
|
const rendered = render(
|
|
126
126
|
<RuleImplementationBasicForm {...customProps} />,
|
|
127
|
-
renderOpts
|
|
127
|
+
renderOpts,
|
|
128
128
|
);
|
|
129
129
|
await waitForLoad(rendered);
|
|
130
130
|
expect(
|
|
131
|
-
await rendered.findByRole("button", { name: /save/i })
|
|
131
|
+
await rendered.findByRole("button", { name: /save/i }),
|
|
132
132
|
).toBeEnabled();
|
|
133
133
|
});
|
|
134
134
|
|
|
135
135
|
it("submit button disabled if there is invalid content in form", async () => {
|
|
136
136
|
const updatedProps = _.flow(
|
|
137
137
|
_.set("ruleImplementation.dfName", "template1"),
|
|
138
|
-
_.set("ruleImplementation.dfContent", {})
|
|
138
|
+
_.set("ruleImplementation.dfContent", {}),
|
|
139
139
|
)(props);
|
|
140
140
|
const customProps = {
|
|
141
141
|
...updatedProps,
|
|
142
142
|
};
|
|
143
143
|
const rendered = render(
|
|
144
144
|
<RuleImplementationBasicForm {...customProps} />,
|
|
145
|
-
renderOpts
|
|
145
|
+
renderOpts,
|
|
146
146
|
);
|
|
147
147
|
await waitForLoad(rendered);
|
|
148
148
|
expect(rendered.getByRole("button", { name: /save/i })).toBeDisabled();
|
|
@@ -46,11 +46,11 @@ describe("<RuleImplementationForm />", () => {
|
|
|
46
46
|
it("matches the latest snapshot", async () => {
|
|
47
47
|
const { container, queryByText } = render(
|
|
48
48
|
<RuleImplementationForm {...props} />,
|
|
49
|
-
renderOpts
|
|
49
|
+
renderOpts,
|
|
50
50
|
);
|
|
51
51
|
await waitFor(() => expect(queryByText(/lazy/i)).not.toBeInTheDocument());
|
|
52
52
|
await waitFor(() =>
|
|
53
|
-
expect(queryByText(/loading/i)).not.toBeInTheDocument()
|
|
53
|
+
expect(queryByText(/loading/i)).not.toBeInTheDocument(),
|
|
54
54
|
);
|
|
55
55
|
|
|
56
56
|
expect(container).toMatchSnapshot();
|
|
@@ -107,11 +107,11 @@ const props = {
|
|
|
107
107
|
describe("<RuleImplementationRawForm />", () => {
|
|
108
108
|
it("matches the latest snapshot", async () => {
|
|
109
109
|
const updatedProps = _.flow(_.set("ruleImplementation.domain_id", 1))(
|
|
110
|
-
props
|
|
110
|
+
props,
|
|
111
111
|
);
|
|
112
112
|
const rendered = render(
|
|
113
113
|
<RuleImplementationRawForm {...updatedProps} />,
|
|
114
|
-
renderOpts
|
|
114
|
+
renderOpts,
|
|
115
115
|
);
|
|
116
116
|
await waitForLoad(rendered);
|
|
117
117
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -121,28 +121,28 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
121
121
|
const updatedProps = _.flow(
|
|
122
122
|
_.set("ruleImplementation.domain_id", 1),
|
|
123
123
|
_.set("ruleImplementation.status", "published"),
|
|
124
|
-
_.set("ruleImplementation.implementation_key", "implementation_test")
|
|
124
|
+
_.set("ruleImplementation.implementation_key", "implementation_test"),
|
|
125
125
|
)(props);
|
|
126
126
|
const rendered = render(
|
|
127
127
|
<RuleImplementationRawForm {...updatedProps} />,
|
|
128
|
-
renderOpts
|
|
128
|
+
renderOpts,
|
|
129
129
|
);
|
|
130
130
|
await waitForLoad(rendered);
|
|
131
131
|
expect(
|
|
132
132
|
rendered.queryByPlaceholderText(
|
|
133
|
-
/ruleImplementation.props.name.placeholder/i
|
|
134
|
-
)
|
|
133
|
+
/ruleImplementation.props.name.placeholder/i,
|
|
134
|
+
),
|
|
135
135
|
).not.toBeDisabled();
|
|
136
136
|
});
|
|
137
137
|
|
|
138
138
|
it("renders sources", async () => {
|
|
139
139
|
const rendered = render(
|
|
140
140
|
<RuleImplementationRawForm {...props} />,
|
|
141
|
-
renderOpts
|
|
141
|
+
renderOpts,
|
|
142
142
|
);
|
|
143
143
|
await waitForLoad(rendered);
|
|
144
144
|
expect(
|
|
145
|
-
rendered.getByRole("option", { name: /ext_id_1/i })
|
|
145
|
+
rendered.getByRole("option", { name: /ext_id_1/i }),
|
|
146
146
|
).toBeInTheDocument();
|
|
147
147
|
});
|
|
148
148
|
|
|
@@ -159,7 +159,7 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
159
159
|
|
|
160
160
|
const rendered = render(
|
|
161
161
|
<RuleImplementationRawForm {...customProps} />,
|
|
162
|
-
renderOpts
|
|
162
|
+
renderOpts,
|
|
163
163
|
);
|
|
164
164
|
await waitForLoad(rendered);
|
|
165
165
|
|
|
@@ -179,11 +179,11 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
179
179
|
|
|
180
180
|
const rendered = render(
|
|
181
181
|
<RuleImplementationRawForm {...customProps} />,
|
|
182
|
-
renderOpts
|
|
182
|
+
renderOpts,
|
|
183
183
|
);
|
|
184
184
|
await waitForLoad(rendered);
|
|
185
185
|
expect(
|
|
186
|
-
rendered.queryByRole("option", { name: /db1/i })
|
|
186
|
+
rendered.queryByRole("option", { name: /db1/i }),
|
|
187
187
|
).not.toBeInTheDocument();
|
|
188
188
|
});
|
|
189
189
|
|
|
@@ -191,7 +191,7 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
191
191
|
const updatedProps = _.flow(
|
|
192
192
|
_.set("ruleImplementation.domain_id", 1),
|
|
193
193
|
_.set("ruleImplementation.dfName", "template1"),
|
|
194
|
-
_.set("ruleImplementation.dfContent", { field1: "foo" })
|
|
194
|
+
_.set("ruleImplementation.dfContent", { field1: "foo" }),
|
|
195
195
|
)(props);
|
|
196
196
|
const customProps = {
|
|
197
197
|
...updatedProps,
|
|
@@ -206,7 +206,7 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
206
206
|
|
|
207
207
|
const rendered = render(
|
|
208
208
|
<RuleImplementationRawForm {...customProps} />,
|
|
209
|
-
renderOpts
|
|
209
|
+
renderOpts,
|
|
210
210
|
);
|
|
211
211
|
await waitForLoad(rendered);
|
|
212
212
|
expect(rendered.getByRole("button", { name: /save/i })).toBeEnabled();
|
|
@@ -216,7 +216,7 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
216
216
|
const updatedProps = _.flow(
|
|
217
217
|
_.set("ruleImplementation.domain_id", 1),
|
|
218
218
|
_.set("ruleImplementation.dfName", "template1"),
|
|
219
|
-
_.set("ruleImplementation.dfContent", { field1: "foo" })
|
|
219
|
+
_.set("ruleImplementation.dfContent", { field1: "foo" }),
|
|
220
220
|
)(props);
|
|
221
221
|
const customProps = {
|
|
222
222
|
...updatedProps,
|
|
@@ -232,7 +232,7 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
232
232
|
|
|
233
233
|
const rendered = render(
|
|
234
234
|
<RuleImplementationRawForm {...customProps} />,
|
|
235
|
-
renderOpts
|
|
235
|
+
renderOpts,
|
|
236
236
|
);
|
|
237
237
|
await waitForLoad(rendered);
|
|
238
238
|
expect(rendered.getByRole("button", { name: /save/i })).toBeEnabled();
|
|
@@ -251,7 +251,7 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
251
251
|
|
|
252
252
|
const rendered = render(
|
|
253
253
|
<RuleImplementationRawForm {...customProps} />,
|
|
254
|
-
renderOpts
|
|
254
|
+
renderOpts,
|
|
255
255
|
);
|
|
256
256
|
await waitForLoad(rendered);
|
|
257
257
|
expect(rendered.getByRole("button", { name: /save/i })).toBeDisabled();
|
|
@@ -264,7 +264,7 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
264
264
|
setImplementationRawContent={setImplementationRawContent}
|
|
265
265
|
{...props}
|
|
266
266
|
/>,
|
|
267
|
-
renderOpts
|
|
267
|
+
renderOpts,
|
|
268
268
|
);
|
|
269
269
|
await waitForLoad(rendered);
|
|
270
270
|
const user = userEvent.setup({ delay: null });
|
|
@@ -284,7 +284,7 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
284
284
|
setImplementationRawContent={setImplementationRawContent}
|
|
285
285
|
{...props}
|
|
286
286
|
/>,
|
|
287
|
-
renderOpts
|
|
287
|
+
renderOpts,
|
|
288
288
|
);
|
|
289
289
|
await waitForLoad(rendered);
|
|
290
290
|
const user = userEvent.setup({ delay: null });
|
|
@@ -320,7 +320,7 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
320
320
|
const updatedProps = _.flow(
|
|
321
321
|
_.set("ruleImplementation.domain_id", 1),
|
|
322
322
|
_.set("ruleImplementation.dfName", "template1"),
|
|
323
|
-
_.set("ruleImplementation.dfContent", { field1: "foo" })
|
|
323
|
+
_.set("ruleImplementation.dfContent", { field1: "foo" }),
|
|
324
324
|
)(props);
|
|
325
325
|
const customProps = {
|
|
326
326
|
...updatedProps,
|
|
@@ -333,7 +333,7 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
333
333
|
};
|
|
334
334
|
const rendered = render(
|
|
335
335
|
<RuleImplementationRawForm {...customProps} />,
|
|
336
|
-
renderOpts
|
|
336
|
+
renderOpts,
|
|
337
337
|
);
|
|
338
338
|
await waitForLoad(rendered);
|
|
339
339
|
expect(rendered.getByRole("button", { name: /save/i })).toBeEnabled();
|
|
@@ -343,7 +343,7 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
343
343
|
const updatedProps = _.flow(
|
|
344
344
|
_.set("ruleImplementation.domain_id", 1),
|
|
345
345
|
_.set("ruleImplementation.dfName", "template1"),
|
|
346
|
-
_.set("ruleImplementation.dfContent", {})
|
|
346
|
+
_.set("ruleImplementation.dfContent", {}),
|
|
347
347
|
)(props);
|
|
348
348
|
const customProps = {
|
|
349
349
|
...updatedProps,
|
|
@@ -355,7 +355,7 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
355
355
|
};
|
|
356
356
|
const rendered = render(
|
|
357
357
|
<RuleImplementationRawForm {...customProps} />,
|
|
358
|
-
renderOpts
|
|
358
|
+
renderOpts,
|
|
359
359
|
);
|
|
360
360
|
await waitForLoad(rendered);
|
|
361
361
|
expect(rendered.getByRole("button", { name: /save/i })).toBeDisabled();
|
|
@@ -373,11 +373,11 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
373
373
|
};
|
|
374
374
|
const rendered = render(
|
|
375
375
|
<RuleImplementationRawForm {...customProps} />,
|
|
376
|
-
renderOpts
|
|
376
|
+
renderOpts,
|
|
377
377
|
);
|
|
378
378
|
await waitForLoad(rendered);
|
|
379
379
|
expect(
|
|
380
|
-
rendered.getByText(/ruleImplementationRawForm.rawText.error/i)
|
|
380
|
+
rendered.getByText(/ruleImplementationRawForm.rawText.error/i),
|
|
381
381
|
).toBeInTheDocument();
|
|
382
382
|
});
|
|
383
383
|
|
|
@@ -385,7 +385,7 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
385
385
|
const onChange = jest.fn();
|
|
386
386
|
const rendered = render(
|
|
387
387
|
<RuleImplementationRawForm {...props} onChange={onChange} />,
|
|
388
|
-
renderOpts
|
|
388
|
+
renderOpts,
|
|
389
389
|
);
|
|
390
390
|
await waitForLoad(rendered);
|
|
391
391
|
const user = userEvent.setup({ delay: null });
|
|
@@ -61,7 +61,7 @@ describe("<ValueConditions />", () => {
|
|
|
61
61
|
<Provider store={createStore(() => ({ structuresSiblings }))}>
|
|
62
62
|
<ValueConditions {...props} />
|
|
63
63
|
</Provider>,
|
|
64
|
-
renderOpts
|
|
64
|
+
renderOpts,
|
|
65
65
|
);
|
|
66
66
|
await waitForLoad(rendered);
|
|
67
67
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -16,7 +16,7 @@ export default (operators, type, nested, scope, formatMessage) => {
|
|
|
16
16
|
: [...acc, { label: k, options: v }];
|
|
17
17
|
}, []),
|
|
18
18
|
_.sortBy(["label"]),
|
|
19
|
-
_.map(renderOperatorOptions)
|
|
19
|
+
_.map(renderOperatorOptions),
|
|
20
20
|
)(operators);
|
|
21
21
|
|
|
22
22
|
const renderOperatorOptions = (operator) =>
|
|
@@ -34,7 +34,7 @@ export default (operators, type, nested, scope, formatMessage) => {
|
|
|
34
34
|
text: formatMessage({
|
|
35
35
|
id: withValueType(
|
|
36
36
|
`ruleImplementation.operator.${operator.name}`,
|
|
37
|
-
operator.value_type
|
|
37
|
+
operator.value_type,
|
|
38
38
|
),
|
|
39
39
|
}),
|
|
40
40
|
id: operator.id,
|
|
@@ -51,27 +51,27 @@ export default (operators, type, nested, scope, formatMessage) => {
|
|
|
51
51
|
({ scope: op_scope }) =>
|
|
52
52
|
_.isNull(op_scope) ||
|
|
53
53
|
_.isEmpty(op_scope) ||
|
|
54
|
-
_.isEqual(scope)(op_scope)
|
|
54
|
+
_.isEqual(scope)(op_scope),
|
|
55
55
|
),
|
|
56
56
|
filterFieldType,
|
|
57
|
-
getOptions
|
|
57
|
+
getOptions,
|
|
58
58
|
)(operators);
|
|
59
59
|
|
|
60
60
|
const getOperatorValue = (row) =>
|
|
61
61
|
_.has("operator")(row) && !_.isEmpty(row.operator)
|
|
62
62
|
? withValueType(
|
|
63
63
|
`${type}.${_.path("operator.name")(row)}`,
|
|
64
|
-
_.path("operator.value_type")(row)
|
|
64
|
+
_.path("operator.value_type")(row),
|
|
65
65
|
)
|
|
66
66
|
: null;
|
|
67
67
|
|
|
68
68
|
const typeCastModifiers = _.flow(
|
|
69
69
|
_.toPairs,
|
|
70
70
|
_.map(([key, value]) =>
|
|
71
|
-
_.map((m) => ({ ...m, sourceType: key }))(value.modifiers || [])
|
|
71
|
+
_.map((m) => ({ ...m, sourceType: key }))(value.modifiers || []),
|
|
72
72
|
),
|
|
73
73
|
_.flatten,
|
|
74
|
-
_.filter({ type: type })
|
|
74
|
+
_.filter({ type: type }),
|
|
75
75
|
)(operators);
|
|
76
76
|
|
|
77
77
|
return {
|
|
@@ -32,7 +32,7 @@ export const useRuleImplementationFilters = () => {
|
|
|
32
32
|
API_RULE_IMPLEMENTATION_FILTERS_SEARCH,
|
|
33
33
|
(url, { arg }) => {
|
|
34
34
|
return apiJsonPost(url, arg);
|
|
35
|
-
}
|
|
35
|
+
},
|
|
36
36
|
);
|
|
37
37
|
};
|
|
38
38
|
|
|
@@ -55,9 +55,9 @@ export const useImplementationsDownload = () => {
|
|
|
55
55
|
return apiJsonPost(url, arg, { ...JSON_OPTS, responseType: "blob" }).then(
|
|
56
56
|
({ data, headers }) => {
|
|
57
57
|
saveFile({ data, headers });
|
|
58
|
-
}
|
|
58
|
+
},
|
|
59
59
|
);
|
|
60
|
-
}
|
|
60
|
+
},
|
|
61
61
|
);
|
|
62
62
|
};
|
|
63
63
|
|
|
@@ -66,14 +66,14 @@ export const useImplementationsUpload = () => {
|
|
|
66
66
|
API_RULE_IMPLEMENTATIONS_XLSX_UPLOAD,
|
|
67
67
|
(url, { arg }) => {
|
|
68
68
|
return apiJsonPost(url, arg, UPLOAD_JSON_OPTS);
|
|
69
|
-
}
|
|
69
|
+
},
|
|
70
70
|
);
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
export const useImplementationsUploadJobs = () => {
|
|
74
74
|
const { data, error, mutate } = useSWR(
|
|
75
75
|
API_RULE_IMPLEMENTATIONS_XLSX_UPLOAD_JOBS,
|
|
76
|
-
apiJson
|
|
76
|
+
apiJson,
|
|
77
77
|
);
|
|
78
78
|
return { data: data?.data, error, loading: !error && !data, mutate };
|
|
79
79
|
};
|
package/src/messages/en.js
CHANGED
package/src/messages/es.js
CHANGED
package/src/messages/index.js
CHANGED
|
@@ -12,7 +12,7 @@ describe("reducers: conceptRules", () => {
|
|
|
12
12
|
|
|
13
13
|
it("should handle the fetchConceptRules.TRIGGER action", () => {
|
|
14
14
|
expect(conceptRules(fooState, { type: fetchConceptRules.TRIGGER })).toEqual(
|
|
15
|
-
initialState
|
|
15
|
+
initialState,
|
|
16
16
|
);
|
|
17
17
|
});
|
|
18
18
|
|
|
@@ -21,8 +21,8 @@ describe("reducers: conceptRules", () => {
|
|
|
21
21
|
expect(
|
|
22
22
|
conceptRules(fooState, {
|
|
23
23
|
type: fetchConceptRules.SUCCESS,
|
|
24
|
-
payload: { data }
|
|
25
|
-
})
|
|
24
|
+
payload: { data },
|
|
25
|
+
}),
|
|
26
26
|
).toEqual(data);
|
|
27
27
|
});
|
|
28
28
|
|
|
@@ -13,8 +13,8 @@ describe("reducers: conceptRulesActions", () => {
|
|
|
13
13
|
expect(
|
|
14
14
|
conceptRulesActions(fooState, {
|
|
15
15
|
type: fetchConceptRules.REQUEST,
|
|
16
|
-
payload
|
|
17
|
-
})
|
|
16
|
+
payload,
|
|
17
|
+
}),
|
|
18
18
|
).toEqual({});
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -22,8 +22,8 @@ describe("reducers: conceptRulesActions", () => {
|
|
|
22
22
|
expect(
|
|
23
23
|
conceptRulesActions(fooState, {
|
|
24
24
|
type: fetchConceptRules.REQUEST,
|
|
25
|
-
payload
|
|
26
|
-
})
|
|
25
|
+
payload,
|
|
26
|
+
}),
|
|
27
27
|
).toEqual({});
|
|
28
28
|
});
|
|
29
29
|
|
|
@@ -33,8 +33,8 @@ describe("reducers: conceptRulesActions", () => {
|
|
|
33
33
|
expect(
|
|
34
34
|
conceptRulesActions(fooState, {
|
|
35
35
|
type: fetchConceptRules.SUCCESS,
|
|
36
|
-
payload
|
|
37
|
-
})
|
|
36
|
+
payload,
|
|
37
|
+
}),
|
|
38
38
|
).toMatchObject(_actions);
|
|
39
39
|
});
|
|
40
40
|
|
|
@@ -17,7 +17,7 @@ describe("reducers: implementationActions", () => {
|
|
|
17
17
|
expect(
|
|
18
18
|
implementationActions(fooState, {
|
|
19
19
|
type: clearRuleImplementations.TRIGGER,
|
|
20
|
-
})
|
|
20
|
+
}),
|
|
21
21
|
).toEqual(initialState);
|
|
22
22
|
});
|
|
23
23
|
|
|
@@ -34,7 +34,7 @@ describe("reducers: implementationActions", () => {
|
|
|
34
34
|
implementationActions(fooState, {
|
|
35
35
|
type: fetchRuleImplementation.SUCCESS,
|
|
36
36
|
payload,
|
|
37
|
-
})
|
|
37
|
+
}),
|
|
38
38
|
).toMatchObject(actions);
|
|
39
39
|
});
|
|
40
40
|
|