@truedat/dq 8.7.0 → 8.7.2

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.
Files changed (238) hide show
  1. package/package.json +3 -3
  2. package/src/components/ConceptRules.js +2 -3
  3. package/src/components/ConditionCell.js +9 -9
  4. package/src/components/ExecutionForm.js +1 -1
  5. package/src/components/ExecutionGroup.js +2 -2
  6. package/src/components/ExecutionGroupContent.js +4 -4
  7. package/src/components/ImplementationExecutionFilters.js +1 -1
  8. package/src/components/ImplementationFiltersLoader.js +2 -2
  9. package/src/components/ImplementationResultBar.js +1 -1
  10. package/src/components/ImplementationSearchResults.js +7 -7
  11. package/src/components/ImplementationStructureDelete.js +1 -1
  12. package/src/components/ImplementationStructuresNew.js +6 -3
  13. package/src/components/ImplementationSummary.js +2 -2
  14. package/src/components/Implementations.js +18 -11
  15. package/src/components/ImplementationsHeader.js +16 -21
  16. package/src/components/ImplementationsRoutes.js +7 -7
  17. package/src/components/MoveImplementation.js +1 -1
  18. package/src/components/NewBasicRuleImplementation.js +1 -1
  19. package/src/components/NewRuleImplementation.js +44 -44
  20. package/src/components/QualityEventError.js +11 -7
  21. package/src/components/RawContent.js +1 -1
  22. package/src/components/RemediationForm.js +1 -1
  23. package/src/components/RemediationPlan.js +2 -2
  24. package/src/components/Rule.js +1 -1
  25. package/src/components/RuleActions.js +1 -1
  26. package/src/components/RuleEventDecorator.js +1 -1
  27. package/src/components/RuleEventRow.js +1 -1
  28. package/src/components/RuleFilters.js +1 -1
  29. package/src/components/RuleFiltersLoader.js +1 -1
  30. package/src/components/RuleFormImplementations.js +1 -1
  31. package/src/components/RuleImplementationEventRow.js +1 -1
  32. package/src/components/RuleImplementationHistory.js +1 -1
  33. package/src/components/RuleImplementationProperties.js +2 -2
  34. package/src/components/RuleImplementationResults.js +2 -2
  35. package/src/components/RuleImplementationTabs.js +5 -5
  36. package/src/components/RuleImplementationsDownload.js +4 -4
  37. package/src/components/RuleImplementationsDownloadXlsx.js +6 -6
  38. package/src/components/RuleImplementationsLoader.js +1 -2
  39. package/src/components/RuleImplementationsTable.js +1 -1
  40. package/src/components/RuleResultDecorator.js +3 -3
  41. package/src/components/RuleResultDetails.js +1 -1
  42. package/src/components/RuleResultRemediationLoader.js +1 -1
  43. package/src/components/RuleResultSegments.js +3 -3
  44. package/src/components/RuleResultsTable.js +7 -7
  45. package/src/components/RuleRoutes.js +3 -3
  46. package/src/components/RuleSelectedFilters.js +3 -3
  47. package/src/components/RuleSelector.js +1 -1
  48. package/src/components/RuleSummary.js +3 -3
  49. package/src/components/Rules.js +4 -4
  50. package/src/components/RulesLoader.js +2 -2
  51. package/src/components/RulesRoutes.js +1 -1
  52. package/src/components/SimpleRuleImplementationsTable.js +1 -1
  53. package/src/components/Subscription.js +1 -1
  54. package/src/components/TaxonomySummary.js +1 -1
  55. package/src/components/__tests__/ConceptRules.spec.js +2 -2
  56. package/src/components/__tests__/ExecutionGroup.spec.js +3 -3
  57. package/src/components/__tests__/ExecutionGroupContent.spec.js +1 -1
  58. package/src/components/__tests__/ExecutionGroups.spec.js +1 -1
  59. package/src/components/__tests__/ExecutionGroupsTable.spec.js +1 -1
  60. package/src/components/__tests__/ImplementationExecutionFilters.spec.js +1 -1
  61. package/src/components/__tests__/ImplementationExecutions.spec.js +1 -1
  62. package/src/components/__tests__/ImplementationResultBar.spec.js +6 -6
  63. package/src/components/__tests__/ImplementationSearchResults.spec.js +3 -3
  64. package/src/components/__tests__/ImplementationStructureDelete.spec.js +1 -1
  65. package/src/components/__tests__/ImplementationStructureLink.spec.js +1 -1
  66. package/src/components/__tests__/ImplementationStructureLinksActions.spec.js +31 -27
  67. package/src/components/__tests__/ImplementationStructures.spec.js +6 -6
  68. package/src/components/__tests__/ImplementationStructuresNew.spec.js +2 -2
  69. package/src/components/__tests__/ImplementationSummary.spec.js +2 -2
  70. package/src/components/__tests__/Implementations.spec.js +1 -1
  71. package/src/components/__tests__/ImplementationsRoutes.spec.js +1 -1
  72. package/src/components/__tests__/ImplementationsUploadButton.spec.js +8 -8
  73. package/src/components/__tests__/MoveImplementation.spec.js +5 -5
  74. package/src/components/__tests__/NewBasicRuleImplementation.spec.js +4 -4
  75. package/src/components/__tests__/NewRuleImplementation.spec.js +14 -14
  76. package/src/components/__tests__/QualityRoutes.spec.js +1 -1
  77. package/src/components/__tests__/RemediationForm.spec.js +9 -3
  78. package/src/components/__tests__/RemediationPlan.spec.js +2 -2
  79. package/src/components/__tests__/RuleActions.spec.js +1 -1
  80. package/src/components/__tests__/RuleForm.spec.js +2 -2
  81. package/src/components/__tests__/RuleFormImplementations.spec.js +3 -3
  82. package/src/components/__tests__/RuleImplementation.spec.js +2 -2
  83. package/src/components/__tests__/RuleImplementationProperties.spec.js +3 -3
  84. package/src/components/__tests__/RuleImplementationResults.spec.js +2 -2
  85. package/src/components/__tests__/RuleImplementationsActions.spec.js +4 -4
  86. package/src/components/__tests__/RuleImplementationsLoader.spec.js +1 -1
  87. package/src/components/__tests__/RuleImplementationsOptions.spec.js +1 -1
  88. package/src/components/__tests__/RuleImplementationsTable.spec.js +3 -3
  89. package/src/components/__tests__/RuleResultDecorator.spec.js +15 -6
  90. package/src/components/__tests__/RuleResultDetails.spec.js +1 -1
  91. package/src/components/__tests__/RuleResultRemediations.spec.js +1 -1
  92. package/src/components/__tests__/RuleResultRoutes.spec.js +4 -4
  93. package/src/components/__tests__/RuleResultRow.spec.js +13 -13
  94. package/src/components/__tests__/RuleResultSegments.spec.js +1 -1
  95. package/src/components/__tests__/RuleRoutes.spec.js +1 -1
  96. package/src/components/__tests__/RuleRow.spec.js +4 -4
  97. package/src/components/__tests__/RuleSelectionForm.spec.js +5 -5
  98. package/src/components/__tests__/RuleSummary.spec.js +3 -3
  99. package/src/components/__tests__/Rules.spec.js +1 -1
  100. package/src/components/__tests__/RulesActions.spec.js +1 -1
  101. package/src/components/__tests__/RulesRoutes.spec.js +1 -1
  102. package/src/components/__tests__/Subscription.spec.js +11 -11
  103. package/src/components/ruleImplementationForm/DatasetForm.js +7 -7
  104. package/src/components/ruleImplementationForm/FieldModifier.js +5 -5
  105. package/src/components/ruleImplementationForm/FieldsGrid.js +2 -2
  106. package/src/components/ruleImplementationForm/FieldsGroup.js +1 -1
  107. package/src/components/ruleImplementationForm/FiltersField.js +4 -4
  108. package/src/components/ruleImplementationForm/FiltersFormGroup.js +3 -3
  109. package/src/components/ruleImplementationForm/FiltersGrid.js +3 -3
  110. package/src/components/ruleImplementationForm/FiltersGroup.js +2 -2
  111. package/src/components/ruleImplementationForm/InformationForm.js +1 -1
  112. package/src/components/ruleImplementationForm/RuleImplementationBasicForm.js +3 -3
  113. package/src/components/ruleImplementationForm/RuleImplementationForm.js +15 -11
  114. package/src/components/ruleImplementationForm/RuleImplementationRawForm.js +5 -5
  115. package/src/components/ruleImplementationForm/__tests__/FiltersFormGroup.spec.js +1 -1
  116. package/src/components/ruleImplementationForm/__tests__/FiltersGroup.spec.js +1 -1
  117. package/src/components/ruleImplementationForm/__tests__/InformationForm.spec.js +2 -2
  118. package/src/components/ruleImplementationForm/__tests__/LimitsForm.spec.js +12 -12
  119. package/src/components/ruleImplementationForm/__tests__/RuleImplementationBasicForm.spec.js +13 -13
  120. package/src/components/ruleImplementationForm/__tests__/RuleImplementationForm.spec.js +2 -2
  121. package/src/components/ruleImplementationForm/__tests__/RuleImplementationRawForm.spec.js +25 -25
  122. package/src/components/ruleImplementationForm/__tests__/ValueConditions.spec.js +1 -1
  123. package/src/components/ruleImplementationForm/operators.js +7 -7
  124. package/src/hooks/__tests__/useImplementations.spec.js +0 -1
  125. package/src/hooks/useImplementations.js +5 -5
  126. package/src/messages/en.js +0 -1
  127. package/src/messages/es.js +0 -1
  128. package/src/messages/index.js +1 -1
  129. package/src/reducers/__tests__/conceptRules.spec.js +3 -3
  130. package/src/reducers/__tests__/conceptRulesActions.spec.js +6 -6
  131. package/src/reducers/__tests__/implementationActions.spec.js +2 -2
  132. package/src/reducers/__tests__/implementationLinks.spec.js +4 -4
  133. package/src/reducers/__tests__/implementationsActions.spec.js +2 -2
  134. package/src/reducers/__tests__/previousRuleImplementationQuery.spec.js +6 -6
  135. package/src/reducers/__tests__/remediation.spec.js +7 -7
  136. package/src/reducers/__tests__/remediationActions.spec.js +3 -3
  137. package/src/reducers/__tests__/remediationLoading.spec.js +6 -6
  138. package/src/reducers/__tests__/resultsUploading.spec.js +2 -2
  139. package/src/reducers/__tests__/rule.spec.js +1 -1
  140. package/src/reducers/__tests__/ruleActiveFilters.spec.js +8 -8
  141. package/src/reducers/__tests__/ruleCount.spec.js +3 -3
  142. package/src/reducers/__tests__/ruleFiltersLoading.spec.js +2 -2
  143. package/src/reducers/__tests__/ruleImplementation.spec.js +2 -2
  144. package/src/reducers/__tests__/ruleImplementationActiveFilters.spec.js +11 -11
  145. package/src/reducers/__tests__/ruleImplementationCount.spec.js +5 -5
  146. package/src/reducers/__tests__/ruleImplementationCreating.spec.js +5 -5
  147. package/src/reducers/__tests__/ruleImplementationFilters.spec.js +4 -4
  148. package/src/reducers/__tests__/ruleImplementationLoading.spec.js +5 -3
  149. package/src/reducers/__tests__/ruleImplementationQuery.spec.js +7 -7
  150. package/src/reducers/__tests__/ruleImplementationRedirect.spec.js +13 -13
  151. package/src/reducers/__tests__/ruleImplementationSaving.spec.js +4 -2
  152. package/src/reducers/__tests__/ruleImplementationSelectedFilter.spec.js +7 -7
  153. package/src/reducers/__tests__/ruleImplementations.spec.js +4 -4
  154. package/src/reducers/__tests__/ruleImplementationsDownloading.spec.js +4 -4
  155. package/src/reducers/__tests__/ruleImplementationsLoading.spec.js +5 -5
  156. package/src/reducers/__tests__/ruleImplementationsPageSize.spec.js +4 -4
  157. package/src/reducers/__tests__/ruleQuery.spec.js +6 -6
  158. package/src/reducers/__tests__/ruleRedirect.spec.js +10 -10
  159. package/src/reducers/__tests__/rules.spec.js +2 -2
  160. package/src/reducers/__tests__/segmentResult.spec.js +3 -3
  161. package/src/reducers/__tests__/uploadImplementationsFile.spec.js +2 -2
  162. package/src/reducers/__tests__/uploadRulesFile.spec.js +2 -2
  163. package/src/reducers/conceptRulesActions.js +2 -2
  164. package/src/reducers/dqMessage.js +2 -2
  165. package/src/reducers/implementationsActions.js +1 -1
  166. package/src/reducers/previousRuleImplementationQuery.js +2 -2
  167. package/src/reducers/ruleFilters.js +1 -1
  168. package/src/reducers/ruleImplementationActiveFilters.js +1 -1
  169. package/src/reducers/ruleImplementationCount.js +1 -1
  170. package/src/reducers/ruleImplementationFilters.js +2 -2
  171. package/src/reducers/ruleImplementationRaw.js +1 -1
  172. package/src/reducers/ruleImplementationRedirect.js +3 -3
  173. package/src/reducers/ruleImplementationSelectedFilter.js +1 -1
  174. package/src/reducers/ruleImplementationsLoading.js +1 -1
  175. package/src/reducers/ruleImplementationsPageSize.js +1 -1
  176. package/src/reducers/ruleSelectedFilter.js +1 -1
  177. package/src/reducers/uploadingImplementationsFile.js +1 -1
  178. package/src/routines.js +23 -23
  179. package/src/sagas/__tests__/createExecutionGroup.spec.js +1 -1
  180. package/src/sagas/__tests__/createImplementationStructure.spec.js +1 -1
  181. package/src/sagas/__tests__/createRuleImplementation.spec.js +1 -1
  182. package/src/sagas/__tests__/deleteImplementationStructure.spec.js +1 -1
  183. package/src/sagas/__tests__/deleteRule.spec.js +1 -3
  184. package/src/sagas/__tests__/downloadRuleImplementations.spec.js +1 -1
  185. package/src/sagas/__tests__/fetchConceptRules.spec.js +1 -1
  186. package/src/sagas/__tests__/fetchRule.spec.js +1 -3
  187. package/src/sagas/__tests__/fetchRuleFilters.spec.js +5 -5
  188. package/src/sagas/__tests__/fetchRuleImplementation.spec.js +1 -1
  189. package/src/sagas/__tests__/fetchRuleImplementations.spec.js +1 -1
  190. package/src/sagas/__tests__/fetchRules.spec.js +4 -6
  191. package/src/sagas/__tests__/searchRuleImplementations.spec.js +3 -3
  192. package/src/sagas/__tests__/updateRule.spec.js +1 -3
  193. package/src/sagas/__tests__/updateRuleImplementation.spec.js +1 -1
  194. package/src/sagas/__tests__/uploadImplementations.spec.js +2 -2
  195. package/src/sagas/createExecutionGroup.js +1 -1
  196. package/src/sagas/createImplementationStructure.js +1 -1
  197. package/src/sagas/createRuleImplementation.js +2 -2
  198. package/src/sagas/deleteImplementationStructure.js +1 -1
  199. package/src/sagas/downloadRuleImplementations.js +1 -1
  200. package/src/sagas/downloadRuleImplementationsXlsx.js +1 -1
  201. package/src/sagas/fetchRuleImplementation.js +1 -1
  202. package/src/sagas/fetchRuleImplementationFilters.js +1 -1
  203. package/src/sagas/fetchRuleImplementations.js +2 -2
  204. package/src/sagas/searchRuleImplementations.js +2 -2
  205. package/src/sagas/updateRuleImplementation.js +1 -1
  206. package/src/sagas/uploadImplementations.js +1 -1
  207. package/src/sagas/uploadResults.js +1 -1
  208. package/src/sagas/uploadRules.js +1 -1
  209. package/src/selectors/__tests__/executionGroupsColumnsSelector.spec.js +2 -2
  210. package/src/selectors/__tests__/getImplementationStructureLinksColumns.spec.js +1 -1
  211. package/src/selectors/__tests__/getRuleImplementationSelectedFilterValues.spec.js +1 -1
  212. package/src/selectors/__tests__/ruleColumnsSelector.spec.js +1 -1
  213. package/src/selectors/datasetDefaultFiltersSelector.js +1 -1
  214. package/src/selectors/executionGroupsColumnsSelector.js +1 -1
  215. package/src/selectors/getExecutionGroupColumns.js +1 -1
  216. package/src/selectors/getExecutionQuery.js +1 -1
  217. package/src/selectors/getImplementationStructureLinksColumns.js +10 -10
  218. package/src/selectors/getImplementationStructures.js +10 -8
  219. package/src/selectors/getImplementationsExecution.js +1 -1
  220. package/src/selectors/getLinkedImplementationsToRulesColumns.js +1 -1
  221. package/src/selectors/getRuleAvailableFilters.js +2 -2
  222. package/src/selectors/getRuleFilterTypes.js +1 -1
  223. package/src/selectors/getRuleImplementationAvailableFilters.js +3 -3
  224. package/src/selectors/getRuleImplementationColumns.js +1 -1
  225. package/src/selectors/getRuleImplementationFilterTypes.js +1 -1
  226. package/src/selectors/getRuleImplementationForm.js +11 -11
  227. package/src/selectors/getRuleImplementationSelectedFilterActiveValues.js +2 -2
  228. package/src/selectors/getRuleImplementationSelectedFilterValues.js +2 -2
  229. package/src/selectors/getRuleImplementationSelectedFilters.js +1 -1
  230. package/src/selectors/getRuleSelectedFilterActiveValues.js +1 -1
  231. package/src/selectors/getRuleSelectedFilterValues.js +2 -2
  232. package/src/selectors/getRuleSelectedFilters.js +1 -1
  233. package/src/selectors/getSegmentResultsColumns.js +1 -1
  234. package/src/selectors/getStructureFields.js +3 -3
  235. package/src/selectors/ruleColumnsSelector.js +3 -3
  236. package/src/selectors/ruleResultsColumnsSelector.js +1 -1
  237. package/src/services/__tests__/encodeRawContent.spec.js +1 -1
  238. package/src/services/encodeRawContent.js +1 -1
@@ -16,13 +16,13 @@ describe("reducers: implementationLinks", () => {
16
16
 
17
17
  it("should handle the clearRuleImplementation.TRIGGER action", () => {
18
18
  expect(
19
- implementationLinks(fooState, { type: clearRuleImplementation.TRIGGER })
19
+ implementationLinks(fooState, { type: clearRuleImplementation.TRIGGER }),
20
20
  ).toEqual(initialState);
21
21
  });
22
22
 
23
23
  it("should handle the fetchRuleImplementation.TRIGGER action", () => {
24
24
  expect(
25
- implementationLinks(fooState, { type: fetchRuleImplementation.TRIGGER })
25
+ implementationLinks(fooState, { type: fetchRuleImplementation.TRIGGER }),
26
26
  ).toEqual(initialState);
27
27
  });
28
28
 
@@ -40,7 +40,7 @@ describe("reducers: implementationLinks", () => {
40
40
  implementationLinks(fooState, {
41
41
  type: fetchRuleImplementation.SUCCESS,
42
42
  payload,
43
- })
43
+ }),
44
44
  ).toMatchObject(links);
45
45
  });
46
46
 
@@ -52,7 +52,7 @@ describe("reducers: implementationLinks", () => {
52
52
  implementationLinks(links, {
53
53
  type: deleteRelation.SUCCESS,
54
54
  payload,
55
- })
55
+ }),
56
56
  ).toMatchObject([{ id: "2" }]);
57
57
  });
58
58
 
@@ -20,7 +20,7 @@ describe("reducers: implementationsActions", () => {
20
20
  implementationsActions(fooState, {
21
21
  type: clearRuleImplementations.TRIGGER,
22
22
  payload,
23
- })
23
+ }),
24
24
  ).toBe(initialState);
25
25
  });
26
26
 
@@ -31,7 +31,7 @@ describe("reducers: implementationsActions", () => {
31
31
  implementationsActions(fooState, {
32
32
  type: searchRuleImplementations.SUCCESS,
33
33
  payload,
34
- })
34
+ }),
35
35
  ).toMatchObject(_actions);
36
36
  });
37
37
 
@@ -1,7 +1,7 @@
1
1
  import { initialState } from "../ruleImplementationQuery";
2
2
  import {
3
3
  clearRuleImplementations,
4
- searchRuleImplementations
4
+ searchRuleImplementations,
5
5
  } from "../../routines";
6
6
  import { previousRuleImplementationQuery } from "..";
7
7
 
@@ -10,7 +10,7 @@ const fooState = { foo: "bar" };
10
10
  describe("reducers: previousRuleImplementationQuery", () => {
11
11
  it("should provide the initial state", () => {
12
12
  expect(previousRuleImplementationQuery(undefined, {})).toEqual(
13
- initialState
13
+ initialState,
14
14
  );
15
15
  });
16
16
 
@@ -19,16 +19,16 @@ describe("reducers: previousRuleImplementationQuery", () => {
19
19
  expect(
20
20
  previousRuleImplementationQuery(fooState, {
21
21
  type: searchRuleImplementations.TRIGGER,
22
- payload
23
- })
22
+ payload,
23
+ }),
24
24
  ).toEqual(payload);
25
25
  });
26
26
 
27
27
  it("should handle the clearRuleImplementations.TRIGGER action", () => {
28
28
  expect(
29
29
  previousRuleImplementationQuery(fooState, {
30
- type: clearRuleImplementations.TRIGGER
31
- })
30
+ type: clearRuleImplementations.TRIGGER,
31
+ }),
32
32
  ).toEqual(initialState);
33
33
  });
34
34
  });
@@ -25,13 +25,13 @@ describe("reducers: remediation", () => {
25
25
 
26
26
  it("should handle the fetchRemediation.TRIGGER action", () => {
27
27
  expect(remediation(state, { type: fetchRemediation.TRIGGER })).toEqual(
28
- initialState
28
+ initialState,
29
29
  );
30
30
  });
31
31
 
32
32
  it("should handle the clearRemediation.TRIGGER action", () => {
33
33
  expect(remediation(state, { type: clearRemediation.TRIGGER })).toEqual(
34
- initialState
34
+ initialState,
35
35
  );
36
36
  });
37
37
 
@@ -40,7 +40,7 @@ describe("reducers: remediation", () => {
40
40
  remediation(state, {
41
41
  type: fetchRemediation.SUCCESS,
42
42
  payload: { data },
43
- })
43
+ }),
44
44
  ).toEqual(data);
45
45
  });
46
46
 
@@ -49,7 +49,7 @@ describe("reducers: remediation", () => {
49
49
  remediation(state, {
50
50
  type: createRemediation.SUCCESS,
51
51
  payload: { data },
52
- })
52
+ }),
53
53
  ).toEqual(data);
54
54
  });
55
55
 
@@ -58,7 +58,7 @@ describe("reducers: remediation", () => {
58
58
  remediation(state, {
59
59
  type: updateRemediation.SUCCESS,
60
60
  payload: { data },
61
- })
61
+ }),
62
62
  ).toEqual(data);
63
63
  });
64
64
 
@@ -67,7 +67,7 @@ describe("reducers: remediation", () => {
67
67
  remediation(state, {
68
68
  type: fetchRemediation.FAILURE,
69
69
  payload: { data, status: 404 },
70
- })
70
+ }),
71
71
  ).toEqual(state);
72
72
  });
73
73
 
@@ -77,7 +77,7 @@ describe("reducers: remediation", () => {
77
77
  remediation(state, {
78
78
  type: fetchRemediation.FAILURE,
79
79
  payload: { data: errorData, status: 500 },
80
- })
80
+ }),
81
81
  ).toEqual(errorData);
82
82
  });
83
83
  });
@@ -16,7 +16,7 @@ describe("reducers: remediationActions", () => {
16
16
  remediationActions(fooState, {
17
17
  type: clearRemediation.TRIGGER,
18
18
  payload,
19
- })
19
+ }),
20
20
  ).toEqual(initialState);
21
21
  });
22
22
 
@@ -25,7 +25,7 @@ describe("reducers: remediationActions", () => {
25
25
  remediationActions(fooState, {
26
26
  type: fetchRemediation.TRIGGER,
27
27
  payload,
28
- })
28
+ }),
29
29
  ).toEqual(initialState);
30
30
  });
31
31
 
@@ -36,7 +36,7 @@ describe("reducers: remediationActions", () => {
36
36
  remediationActions(fooState, {
37
37
  type: fetchRemediation.SUCCESS,
38
38
  payload,
39
- })
39
+ }),
40
40
  ).toMatchObject(_actions);
41
41
  });
42
42
 
@@ -14,37 +14,37 @@ describe("reducers: remediationLoading", () => {
14
14
 
15
15
  it("should be true after receiving the fetchRemediation.TRIGGER action", () => {
16
16
  expect(remediationLoading(state, { type: fetchRemediation.TRIGGER })).toBe(
17
- true
17
+ true,
18
18
  );
19
19
  });
20
20
 
21
21
  it("should be false after receiving the fetchRemediation.FULFILL action", () => {
22
22
  expect(remediationLoading(state, { type: fetchRemediation.FULFILL })).toBe(
23
- false
23
+ false,
24
24
  );
25
25
  });
26
26
 
27
27
  it("should be true after receiving the updateRemediation.TRIGGER action", () => {
28
28
  expect(remediationLoading(state, { type: updateRemediation.TRIGGER })).toBe(
29
- true
29
+ true,
30
30
  );
31
31
  });
32
32
 
33
33
  it("should be false after receiving the updateRemediation.FULFILL action", () => {
34
34
  expect(remediationLoading(state, { type: updateRemediation.FULFILL })).toBe(
35
- false
35
+ false,
36
36
  );
37
37
  });
38
38
 
39
39
  it("should be true after receiving the createRemediation.TRIGGER action", () => {
40
40
  expect(remediationLoading(state, { type: createRemediation.TRIGGER })).toBe(
41
- true
41
+ true,
42
42
  );
43
43
  });
44
44
 
45
45
  it("should be false after receiving the createRemediation.FULFILL action", () => {
46
46
  expect(remediationLoading(state, { type: createRemediation.FULFILL })).toBe(
47
- false
47
+ false,
48
48
  );
49
49
  });
50
50
  });
@@ -14,7 +14,7 @@ describe("reducers: resultsUploading", () => {
14
14
  expect(
15
15
  resultsUploading(fooState, {
16
16
  type: uploadResults.TRIGGER,
17
- })
17
+ }),
18
18
  ).toBeTruthy();
19
19
  });
20
20
 
@@ -22,7 +22,7 @@ describe("reducers: resultsUploading", () => {
22
22
  expect(
23
23
  resultsUploading(fooState, {
24
24
  type: uploadResults.FULFILL,
25
- })
25
+ }),
26
26
  ).toBeFalsy();
27
27
  });
28
28
  });
@@ -30,7 +30,7 @@ describe("reducers: rule", () => {
30
30
  rule(fooState, {
31
31
  type: fetchRule.SUCCESS,
32
32
  payload,
33
- })
33
+ }),
34
34
  ).toMatchObject(someRule);
35
35
  });
36
36
 
@@ -24,7 +24,7 @@ describe("reducers: ruleActiveFilters", () => {
24
24
  ruleActiveFilters(fooState, {
25
25
  type: addRuleFilter.TRIGGER,
26
26
  payload,
27
- })
27
+ }),
28
28
  ).toEqual({ ...fooState, baz: [] });
29
29
  });
30
30
 
@@ -35,7 +35,7 @@ describe("reducers: ruleActiveFilters", () => {
35
35
  ruleActiveFilters(fooState, {
36
36
  type: applyUserSearchFilter.TRIGGER,
37
37
  payload,
38
- })
38
+ }),
39
39
  ).toEqual({ ...filters });
40
40
  });
41
41
 
@@ -48,7 +48,7 @@ describe("reducers: ruleActiveFilters", () => {
48
48
  ruleActiveFilters(state, {
49
49
  type: closeRuleFilter.TRIGGER,
50
50
  payload,
51
- })
51
+ }),
52
52
  ).toEqual({ foo });
53
53
  });
54
54
 
@@ -60,7 +60,7 @@ describe("reducers: ruleActiveFilters", () => {
60
60
  ruleActiveFilters(state, {
61
61
  type: clearRuleFilters.TRIGGER,
62
62
  payload,
63
- })
63
+ }),
64
64
  ).toEqual({});
65
65
  });
66
66
 
@@ -73,7 +73,7 @@ describe("reducers: ruleActiveFilters", () => {
73
73
  ruleActiveFilters(state, {
74
74
  type: removeRuleFilter.TRIGGER,
75
75
  payload,
76
- })
76
+ }),
77
77
  ).toEqual({ bar });
78
78
  });
79
79
 
@@ -81,7 +81,7 @@ describe("reducers: ruleActiveFilters", () => {
81
81
  expect(
82
82
  ruleActiveFilters(fooState, {
83
83
  type: resetRuleFilters.TRIGGER,
84
- })
84
+ }),
85
85
  ).toEqual(initialState);
86
86
  });
87
87
 
@@ -89,7 +89,7 @@ describe("reducers: ruleActiveFilters", () => {
89
89
  expect(
90
90
  ruleActiveFilters(fooState, {
91
91
  type: resetRuleFilters.TRIGGER,
92
- })
92
+ }),
93
93
  ).toEqual(initialState);
94
94
  });
95
95
 
@@ -102,7 +102,7 @@ describe("reducers: ruleActiveFilters", () => {
102
102
  ruleActiveFilters(state, {
103
103
  type: toggleRuleFilterValue.TRIGGER,
104
104
  payload,
105
- })
105
+ }),
106
106
  ).toEqual({ foo: ["foo1", "foo3"], bar });
107
107
  });
108
108
 
@@ -12,7 +12,7 @@ describe("reducers: ruleCount", () => {
12
12
 
13
13
  it("should handle the clearRules.TRIGGER action", () => {
14
14
  expect(ruleCount(fooState, { type: clearRules.TRIGGER })).toEqual(
15
- initialState
15
+ initialState,
16
16
  );
17
17
  });
18
18
 
@@ -22,8 +22,8 @@ describe("reducers: ruleCount", () => {
22
22
  expect(
23
23
  ruleCount(fooState, {
24
24
  type: fetchRules.SUCCESS,
25
- payload: { headers }
26
- })
25
+ payload: { headers },
26
+ }),
27
27
  ).toEqual(count);
28
28
  });
29
29
 
@@ -10,13 +10,13 @@ describe("reducers: ruleFiltersLoading", () => {
10
10
 
11
11
  it("should be true after receiving the fetchRuleFilters.REQUEST action", () => {
12
12
  expect(ruleFiltersLoading(false, { type: fetchRuleFilters.REQUEST })).toBe(
13
- true
13
+ true,
14
14
  );
15
15
  });
16
16
 
17
17
  it("should be false after receiving the fetchRuleFilters.FULFILL action", () => {
18
18
  expect(ruleFiltersLoading(true, { type: fetchRuleFilters.FULFILL })).toBe(
19
- false
19
+ false,
20
20
  );
21
21
  });
22
22
 
@@ -12,7 +12,7 @@ describe("reducers: ruleImplementation", () => {
12
12
 
13
13
  it("should handle the fetchRuleImplementation.TRIGGER action", () => {
14
14
  expect(
15
- ruleImplementation(fooState, { type: fetchRuleImplementation.TRIGGER })
15
+ ruleImplementation(fooState, { type: fetchRuleImplementation.TRIGGER }),
16
16
  ).toEqual(initialState);
17
17
  });
18
18
 
@@ -30,7 +30,7 @@ describe("reducers: ruleImplementation", () => {
30
30
  ruleImplementation(fooState, {
31
31
  type: fetchRuleImplementation.SUCCESS,
32
32
  payload,
33
- })
33
+ }),
34
34
  ).toMatchObject(ruleImpl);
35
35
  });
36
36
 
@@ -15,7 +15,7 @@ const fooState = { foo: "bar" };
15
15
  describe("reducers: ruleImplementationActiveFilters", () => {
16
16
  it("should provide the initial state", () => {
17
17
  expect(ruleImplementationActiveFilters(undefined, {})).toEqual(
18
- initialState
18
+ initialState,
19
19
  );
20
20
  });
21
21
 
@@ -26,7 +26,7 @@ describe("reducers: ruleImplementationActiveFilters", () => {
26
26
  ruleImplementationActiveFilters(fooState, {
27
27
  type: applyUserSearchFilter.TRIGGER,
28
28
  payload,
29
- })
29
+ }),
30
30
  ).toEqual({ ...filters });
31
31
  });
32
32
 
@@ -37,7 +37,7 @@ describe("reducers: ruleImplementationActiveFilters", () => {
37
37
  ruleImplementationActiveFilters(fooState, {
38
38
  type: addImplementationFilter.TRIGGER,
39
39
  payload,
40
- })
40
+ }),
41
41
  ).toEqual({ ...fooState, baz: [] });
42
42
  });
43
43
 
@@ -49,7 +49,7 @@ describe("reducers: ruleImplementationActiveFilters", () => {
49
49
  ruleImplementationActiveFilters(state, {
50
50
  type: clearImplementationFilters.TRIGGER,
51
51
  payload,
52
- })
52
+ }),
53
53
  ).toEqual({});
54
54
  });
55
55
 
@@ -62,7 +62,7 @@ describe("reducers: ruleImplementationActiveFilters", () => {
62
62
  ruleImplementationActiveFilters(state, {
63
63
  type: closeImplementationFilter.TRIGGER,
64
64
  payload,
65
- })
65
+ }),
66
66
  ).toEqual({ foo });
67
67
  });
68
68
 
@@ -75,7 +75,7 @@ describe("reducers: ruleImplementationActiveFilters", () => {
75
75
  ruleImplementationActiveFilters(state, {
76
76
  type: removeImplementationFilter.TRIGGER,
77
77
  payload,
78
- })
78
+ }),
79
79
  ).toEqual({ bar });
80
80
  });
81
81
 
@@ -83,7 +83,7 @@ describe("reducers: ruleImplementationActiveFilters", () => {
83
83
  expect(
84
84
  ruleImplementationActiveFilters(fooState, {
85
85
  type: resetImplementationFilters.TRIGGER,
86
- })
86
+ }),
87
87
  ).toEqual(initialState);
88
88
  });
89
89
 
@@ -93,8 +93,8 @@ describe("reducers: ruleImplementationActiveFilters", () => {
93
93
  { ...fooState, executable: [true] },
94
94
  {
95
95
  type: resetImplementationFilters.TRIGGER,
96
- }
97
- )
96
+ },
97
+ ),
98
98
  ).toEqual({ executable: [true] });
99
99
  });
100
100
 
@@ -107,13 +107,13 @@ describe("reducers: ruleImplementationActiveFilters", () => {
107
107
  ruleImplementationActiveFilters(state, {
108
108
  type: toggleImplementationFilterValue.TRIGGER,
109
109
  payload,
110
- })
110
+ }),
111
111
  ).toEqual({ foo: ["foo1", "foo3"], bar });
112
112
  });
113
113
 
114
114
  it("should ignore unknown actions", () => {
115
115
  expect(ruleImplementationActiveFilters(fooState, { type: "FOO" })).toBe(
116
- fooState
116
+ fooState,
117
117
  );
118
118
  });
119
119
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearRuleImplementations,
3
- searchRuleImplementations
3
+ searchRuleImplementations,
4
4
  } from "../../routines";
5
5
  import { ruleImplementationCount } from "..";
6
6
 
@@ -16,8 +16,8 @@ describe("reducers: ruleImplementationCount", () => {
16
16
  it("should handle the clearRuleImplementations.TRIGGER action", () => {
17
17
  expect(
18
18
  ruleImplementationCount(fooState, {
19
- type: clearRuleImplementations.TRIGGER
20
- })
19
+ type: clearRuleImplementations.TRIGGER,
20
+ }),
21
21
  ).toEqual(initialState);
22
22
  });
23
23
 
@@ -27,8 +27,8 @@ describe("reducers: ruleImplementationCount", () => {
27
27
  expect(
28
28
  ruleImplementationCount(fooState, {
29
29
  type: searchRuleImplementations.SUCCESS,
30
- payload: { headers }
31
- })
30
+ payload: { headers },
31
+ }),
32
32
  ).toEqual(count);
33
33
  });
34
34
 
@@ -11,22 +11,22 @@ describe("reducers: ruleImplementationCreating", () => {
11
11
  it("should be true after receiving the createRuleImplementation.TRIGGER action", () => {
12
12
  expect(
13
13
  ruleImplementationCreating(false, {
14
- type: createRuleImplementation.TRIGGER
15
- })
14
+ type: createRuleImplementation.TRIGGER,
15
+ }),
16
16
  ).toBe(true);
17
17
  });
18
18
 
19
19
  it("should be false after receiving the createRuleImplementation.FULFILL action", () => {
20
20
  expect(
21
21
  ruleImplementationCreating(true, {
22
- type: createRuleImplementation.FULFILL
23
- })
22
+ type: createRuleImplementation.FULFILL,
23
+ }),
24
24
  ).toBe(false);
25
25
  });
26
26
 
27
27
  it("should ignore unhandled actions", () => {
28
28
  expect(ruleImplementationCreating(fooState, { type: "FOO" })).toBe(
29
- fooState
29
+ fooState,
30
30
  );
31
31
  });
32
32
  });
@@ -17,7 +17,7 @@ describe("reducers: ruleImplementationFilters", () => {
17
17
  expect(
18
18
  ruleImplementationFilters(fooState, {
19
19
  type: clearImplementationFilters.TRIGGER,
20
- })
20
+ }),
21
21
  ).toEqual(initialState);
22
22
  });
23
23
 
@@ -30,7 +30,7 @@ describe("reducers: ruleImplementationFilters", () => {
30
30
  ruleImplementationFilters(fooState, {
31
31
  type: fetchImplementationFilters.SUCCESS,
32
32
  payload: { data: { data } },
33
- })
33
+ }),
34
34
  ).toEqual(data);
35
35
  });
36
36
 
@@ -43,7 +43,7 @@ describe("reducers: ruleImplementationFilters", () => {
43
43
  ruleImplementationFilters(fooState, {
44
44
  type: fetchImplementationFilters.SUCCESS,
45
45
  payload: { data: { data } },
46
- })
46
+ }),
47
47
  ).toEqual({
48
48
  filter1: { values: ["value1", "value2"] },
49
49
  });
@@ -58,7 +58,7 @@ describe("reducers: ruleImplementationFilters", () => {
58
58
  ruleImplementationFilters(fooState, {
59
59
  type: fetchImplementationFilters.SUCCESS,
60
60
  payload: { data: { data } },
61
- })
61
+ }),
62
62
  ).toEqual(data);
63
63
  });
64
64
 
@@ -11,14 +11,16 @@ describe("reducers: ruleImplementationLoading", () => {
11
11
  it("should be true after receiving the fetchRuleImplementation.TRIGGER action", () => {
12
12
  expect(
13
13
  ruleImplementationLoading(false, {
14
- type: fetchRuleImplementation.TRIGGER
15
- })
14
+ type: fetchRuleImplementation.TRIGGER,
15
+ }),
16
16
  ).toBe(true);
17
17
  });
18
18
 
19
19
  it("should be false after receiving the fetchRule.FULFILL action", () => {
20
20
  expect(
21
- ruleImplementationLoading(true, { type: fetchRuleImplementation.FULFILL })
21
+ ruleImplementationLoading(true, {
22
+ type: fetchRuleImplementation.FULFILL,
23
+ }),
22
24
  ).toBe(false);
23
25
  });
24
26
 
@@ -22,7 +22,7 @@ describe("reducers: ruleImplementationQuery", () => {
22
22
  ruleImplementationQuery(fooState, {
23
23
  type: selectImplementationPage.TRIGGER,
24
24
  payload,
25
- })
25
+ }),
26
26
  ).toEqual({ ...fooState, page: activePage });
27
27
  });
28
28
 
@@ -30,7 +30,7 @@ describe("reducers: ruleImplementationQuery", () => {
30
30
  expect(
31
31
  ruleImplementationQuery(fooState, {
32
32
  type: clearImplementationFilters.TRIGGER,
33
- })
33
+ }),
34
34
  ).toEqual({
35
35
  ...fooState,
36
36
  page: 1,
@@ -41,7 +41,7 @@ describe("reducers: ruleImplementationQuery", () => {
41
41
  expect(
42
42
  ruleImplementationQuery(fooState, {
43
43
  type: removeImplementationFilter.TRIGGER,
44
- })
44
+ }),
45
45
  ).toEqual({
46
46
  ...fooState,
47
47
  page: 1,
@@ -52,7 +52,7 @@ describe("reducers: ruleImplementationQuery", () => {
52
52
  expect(
53
53
  ruleImplementationQuery(fooState, {
54
54
  type: toggleImplementationFilterValue.TRIGGER,
55
- })
55
+ }),
56
56
  ).toEqual({
57
57
  ...fooState,
58
58
  page: 1,
@@ -67,7 +67,7 @@ describe("reducers: ruleImplementationQuery", () => {
67
67
  ruleImplementationQuery(fooState, {
68
68
  type: searchImplementations.TRIGGER,
69
69
  payload,
70
- })
70
+ }),
71
71
  ).toMatchObject({ query });
72
72
  });
73
73
 
@@ -77,7 +77,7 @@ describe("reducers: ruleImplementationQuery", () => {
77
77
  ruleImplementationQuery(fooState, {
78
78
  type: searchImplementations.TRIGGER,
79
79
  payload,
80
- })
80
+ }),
81
81
  ).toMatchObject({
82
82
  query,
83
83
  sort: [{ _score: "desc" }],
@@ -90,7 +90,7 @@ describe("reducers: ruleImplementationQuery", () => {
90
90
  ruleImplementationQuery(fooState, {
91
91
  type: searchImplementations.TRIGGER,
92
92
  payload,
93
- })
93
+ }),
94
94
  ).toMatchObject({
95
95
  query: "",
96
96
  sort: [{ "implementation_key.sort": "asc" }],