@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.
@@ -42,6 +42,7 @@ const ruleImplementation = {
42
42
  id: 1,
43
43
  name: "Microstrategy",
44
44
  },
45
+ alias: [{ index: 0, text: "bar" }],
45
46
  },
46
47
  },
47
48
  ],
@@ -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
  });
@@ -59,6 +59,7 @@ exports[`<ConditionSummary /> matches the latest snapshot 1`] = `
59
59
  <span
60
60
  class="highlighted"
61
61
  >
62
+
62
63
  "Mes"
63
64
  </span>
64
65
  </a>
@@ -133,11 +133,11 @@ exports[`<ImplementationSummary /> displays correctly validations values of list
133
133
  <a
134
134
  href="/structures/1915"
135
135
  >
136
- <span
136
+ <p
137
137
  class="highlighted"
138
138
  >
139
139
  "CMC &gt; Objetos Públicos &gt; 0. 0 Meses"
140
- </span>
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 [