@truedat/dq 4.35.7 → 4.36.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.
- package/CHANGELOG.md +12 -0
- package/package.json +4 -4
- package/src/components/ConditionSummary.js +13 -7
- package/src/components/ImplementationSummary.js +57 -7
- package/src/components/NewRuleImplementation.js +115 -22
- package/src/components/__test_samples__/NewRuleImplementationProps.js +1917 -0
- package/src/components/__tests__/ImplementationSummary.spec.js +1 -0
- package/src/components/__tests__/NewRuleImplementation.spec.js +8 -0
- package/src/components/__tests__/__snapshots__/ConditionSummary.spec.js.snap +1 -0
- package/src/components/__tests__/__snapshots__/ImplementationSummary.spec.js.snap +30 -2
- package/src/components/__tests__/__snapshots__/NewRuleImplementation.spec.js.snap +1129 -0
- package/src/components/ruleImplementationForm/DatasetForm.js +26 -4
- package/src/components/ruleImplementationForm/FiltersField.js +6 -2
- package/src/components/ruleImplementationForm/FiltersFormGroup.js +7 -1
- package/src/components/ruleImplementationForm/FiltersGrid.js +7 -2
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/DataSetForm.spec.js.snap +34 -1
- package/src/messages/en.js +2 -0
- package/src/messages/es.js +2 -0
- package/src/styles/ImplementationSummary.less +3 -0
- package/src/styles/ruleImplementationForm/DatasetForm.less +3 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { shallow } from "enzyme";
|
|
3
3
|
import { NewRuleImplementation } from "../NewRuleImplementation";
|
|
4
|
+
import { newRuleImplementationProps } from "../__test_samples__/NewRuleImplementationProps";
|
|
4
5
|
|
|
5
6
|
describe("<NewRuleImplementation />", () => {
|
|
6
7
|
const createRuleImplementation = jest.fn();
|
|
@@ -18,4 +19,11 @@ describe("<NewRuleImplementation />", () => {
|
|
|
18
19
|
const wrapper = shallow(<NewRuleImplementation {...props} />);
|
|
19
20
|
expect(wrapper).toMatchSnapshot();
|
|
20
21
|
});
|
|
22
|
+
|
|
23
|
+
it("calculate aliases when not informed", () => {
|
|
24
|
+
const wrapper = shallow(
|
|
25
|
+
<NewRuleImplementation {...newRuleImplementationProps} />
|
|
26
|
+
);
|
|
27
|
+
expect(wrapper).toMatchSnapshot();
|
|
28
|
+
});
|
|
21
29
|
});
|
|
@@ -133,11 +133,11 @@ exports[`<ImplementationSummary /> displays correctly validations values of list
|
|
|
133
133
|
<a
|
|
134
134
|
href="/structures/1915"
|
|
135
135
|
>
|
|
136
|
-
<
|
|
136
|
+
<p
|
|
137
137
|
class="highlighted"
|
|
138
138
|
>
|
|
139
139
|
"CMC > Objetos Públicos > 0. 0 Meses"
|
|
140
|
-
</
|
|
140
|
+
</p>
|
|
141
141
|
</a>
|
|
142
142
|
</td>
|
|
143
143
|
</tr>
|
|
@@ -201,6 +201,7 @@ exports[`<ImplementationSummary /> displays correctly validations values of list
|
|
|
201
201
|
<span
|
|
202
202
|
class="highlighted"
|
|
203
203
|
>
|
|
204
|
+
|
|
204
205
|
"Mes"
|
|
205
206
|
</span>
|
|
206
207
|
</a>
|
|
@@ -238,6 +239,12 @@ exports[`<ImplementationSummary /> matches the latest snapshot 1`] = `
|
|
|
238
239
|
"dataset": Array [
|
|
239
240
|
Object {
|
|
240
241
|
"structure": Object {
|
|
242
|
+
"alias": Array [
|
|
243
|
+
Object {
|
|
244
|
+
"index": 0,
|
|
245
|
+
"text": "bar",
|
|
246
|
+
},
|
|
247
|
+
],
|
|
241
248
|
"id": 1915,
|
|
242
249
|
"name": "0. 0 Meses",
|
|
243
250
|
"path": Array [
|
|
@@ -293,10 +300,21 @@ exports[`<ImplementationSummary /> matches the latest snapshot 1`] = `
|
|
|
293
300
|
}
|
|
294
301
|
/>
|
|
295
302
|
<DatasetSummary
|
|
303
|
+
alias={
|
|
304
|
+
Array [
|
|
305
|
+
Object {},
|
|
306
|
+
]
|
|
307
|
+
}
|
|
296
308
|
rows={
|
|
297
309
|
Array [
|
|
298
310
|
Object {
|
|
299
311
|
"structure": Object {
|
|
312
|
+
"alias": Array [
|
|
313
|
+
Object {
|
|
314
|
+
"index": 0,
|
|
315
|
+
"text": "bar",
|
|
316
|
+
},
|
|
317
|
+
],
|
|
300
318
|
"id": 1915,
|
|
301
319
|
"name": "0. 0 Meses",
|
|
302
320
|
"path": Array [
|
|
@@ -314,6 +332,11 @@ exports[`<ImplementationSummary /> matches the latest snapshot 1`] = `
|
|
|
314
332
|
}
|
|
315
333
|
/>
|
|
316
334
|
<ConditionSummary
|
|
335
|
+
alias={
|
|
336
|
+
Array [
|
|
337
|
+
Object {},
|
|
338
|
+
]
|
|
339
|
+
}
|
|
317
340
|
icon="user"
|
|
318
341
|
rows={
|
|
319
342
|
Array [
|
|
@@ -323,6 +346,11 @@ exports[`<ImplementationSummary /> matches the latest snapshot 1`] = `
|
|
|
323
346
|
type="population"
|
|
324
347
|
/>
|
|
325
348
|
<ConditionSummary
|
|
349
|
+
alias={
|
|
350
|
+
Array [
|
|
351
|
+
Object {},
|
|
352
|
+
]
|
|
353
|
+
}
|
|
326
354
|
icon="setting"
|
|
327
355
|
rows={
|
|
328
356
|
Array [
|