@sankhyalabs/core 5.20.0-dev.44 → 5.20.0-dev.45
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.
|
@@ -40,7 +40,7 @@ Data a ser ajustada.
|
|
|
40
40
|
|
|
41
41
|
#### Source
|
|
42
42
|
|
|
43
|
-
src/utils/DateUtils.ts:
|
|
43
|
+
src/utils/DateUtils.ts:139
|
|
44
44
|
|
|
45
45
|
***
|
|
46
46
|
|
|
@@ -130,7 +130,7 @@ define se devemos considerar os segundos.
|
|
|
130
130
|
|
|
131
131
|
#### Source
|
|
132
132
|
|
|
133
|
-
src/utils/DateUtils.ts:
|
|
133
|
+
src/utils/DateUtils.ts:56
|
|
134
134
|
|
|
135
135
|
***
|
|
136
136
|
|
|
@@ -161,7 +161,7 @@ Informo: 2023-03-09 12:42:40 | Obtenho: 2023-03-09T12:42:47-03:00
|
|
|
161
161
|
|
|
162
162
|
#### Source
|
|
163
163
|
|
|
164
|
-
src/utils/DateUtils.ts:
|
|
164
|
+
src/utils/DateUtils.ts:189
|
|
165
165
|
|
|
166
166
|
***
|
|
167
167
|
|
|
@@ -213,7 +213,7 @@ Caso true retorna a data com informações de horário.
|
|
|
213
213
|
|
|
214
214
|
#### Source
|
|
215
215
|
|
|
216
|
-
src/utils/DateUtils.ts:
|
|
216
|
+
src/utils/DateUtils.ts:110
|
|
217
217
|
|
|
218
218
|
***
|
|
219
219
|
|
|
@@ -247,7 +247,7 @@ Informo: 2 | Obtenho: "02"
|
|
|
247
247
|
|
|
248
248
|
#### Source
|
|
249
249
|
|
|
250
|
-
src/utils/DateUtils.ts:
|
|
250
|
+
src/utils/DateUtils.ts:158
|
|
251
251
|
|
|
252
252
|
***
|
|
253
253
|
|
|
@@ -279,7 +279,7 @@ Quando ativado, retorna o primeiro dia do mês apenas para construir a data.
|
|
|
279
279
|
|
|
280
280
|
#### Source
|
|
281
281
|
|
|
282
|
-
src/utils/DateUtils.ts:
|
|
282
|
+
src/utils/DateUtils.ts:68
|
|
283
283
|
|
|
284
284
|
***
|
|
285
285
|
|
|
@@ -303,7 +303,7 @@ Timezone da data.
|
|
|
303
303
|
|
|
304
304
|
#### Source
|
|
305
305
|
|
|
306
|
-
src/utils/DateUtils.ts:
|
|
306
|
+
src/utils/DateUtils.ts:168
|
|
307
307
|
|
|
308
308
|
***
|
|
309
309
|
|
|
@@ -331,4 +331,4 @@ Determina se a data retornada deve conter informação de horário ou não. Por
|
|
|
331
331
|
|
|
332
332
|
#### Source
|
|
333
333
|
|
|
334
|
-
src/utils/DateUtils.ts:
|
|
334
|
+
src/utils/DateUtils.ts:127
|
package/dist/utils/DateUtils.js
CHANGED
|
@@ -36,6 +36,9 @@ export default class DateUtils {
|
|
|
36
36
|
* @returns - Uma string com as horas no formato HH:MM ou HH:MM:SS.
|
|
37
37
|
*/
|
|
38
38
|
static formatTime(date, showSeconds = false) {
|
|
39
|
+
if (date == null) {
|
|
40
|
+
return '';
|
|
41
|
+
}
|
|
39
42
|
const timeOptions = { hour: "2-digit", minute: "2-digit", second: showSeconds ? "2-digit" : undefined };
|
|
40
43
|
return new Intl.DateTimeFormat("pt-BR", timeOptions).format(date);
|
|
41
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateUtils.js","sourceRoot":"","sources":["../../src/utils/DateUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,SAAS;IAEzB;;;;;;;;MAQE;IACI,MAAM,CAAC,SAAS,CAAC,IAAS,EAAE,2BAAmC,IAAI;QACtE,MAAM,OAAO,GAAS,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QAChG,OAAO,wBAAwB,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,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HANGED
package/reports/test-report.xml
CHANGED
|
@@ -1,33 +1,49 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<unitTest version="1">
|
|
3
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaModel.spec.ts">
|
|
4
|
+
<testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="181"/>
|
|
5
|
+
<testCase name="StringUtils it should modify "expressions" and "parameters" properties through Setters methods" duration="1"/>
|
|
6
|
+
<testCase name="StringUtils it should return "expression" and "parameters" setted through constructor method" duration="1"/>
|
|
7
|
+
<testCase name="StringUtils it should return a Criteria class with "expression" and "parameters" as needed setted through "append" method" duration="1"/>
|
|
8
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "append" method" duration="1"/>
|
|
9
|
+
<testCase name="StringUtils it should return undefined as "expression" and "[]" as parameters as we use an empty criteria as first entry in the constructor" duration="0"/>
|
|
10
|
+
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "OR" method" duration="94"/>
|
|
11
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
12
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
13
|
+
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "AND" method" duration="9"/>
|
|
14
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="2"/>
|
|
15
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
16
|
+
<testCase name="StringUtils it should return a toJSON object with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="3"/>
|
|
17
|
+
<testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="1"/>
|
|
18
|
+
</file>
|
|
3
19
|
<file path="/builds/dti/design-system/sankhyacore/src/utils/test/objectUtils.spec.ts">
|
|
4
|
-
<testCase name="ObjectUtils hasEquivalentValues should return true if both objects have the same property value" duration="
|
|
5
|
-
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="
|
|
20
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true if both objects have the same property value" duration="84"/>
|
|
21
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="1"/>
|
|
6
22
|
<testCase name="ObjectUtils hasEquivalentValues should return true if both objects are equivalent with custom property to compare" duration="1"/>
|
|
7
23
|
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects are not equivalent with custom property to compare" duration="1"/>
|
|
8
|
-
<testCase name="ObjectUtils hasEquivalentValues should return false if one object does not have the property" duration="
|
|
24
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if one object does not have the property" duration="80"/>
|
|
9
25
|
<testCase name="ObjectUtils hasEquivalentValues should return true if comparing primitive values directly" duration="1"/>
|
|
10
26
|
<testCase name="ObjectUtils hasEquivalentValues should return false if comparing different primitive values" duration="0"/>
|
|
11
|
-
<testCase name="ObjectUtils hasEquivalentValues should return true when comparing object with a null value" duration="
|
|
27
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true when comparing object with a null value" duration="8"/>
|
|
12
28
|
<testCase name="ObjectUtils hasEquivalentValues should return false when comparing object with null and non-null value" duration="0"/>
|
|
13
|
-
<testCase name="ObjectUtils hasEquivalentValues should return true when comparing non-object values that are equal" duration="
|
|
14
|
-
<testCase name="ObjectUtils should get an object value based on its path" duration="
|
|
15
|
-
<testCase name="ObjectUtils should get an object value based on its path" duration="
|
|
29
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true when comparing non-object values that are equal" duration="1"/>
|
|
30
|
+
<testCase name="ObjectUtils should get an object value based on its path" duration="1"/>
|
|
31
|
+
<testCase name="ObjectUtils should get an object value based on its path" duration="1"/>
|
|
16
32
|
<testCase name="ObjectUtils should return undefined if the path doesn't exist in the object" duration="1"/>
|
|
17
33
|
</file>
|
|
18
34
|
<file path="/builds/dti/design-system/sankhyacore/test/util/MaskFormatter.spec.ts">
|
|
19
|
-
<testCase name="Mask Formatter mask:CPF complete valid" duration="
|
|
35
|
+
<testCase name="Mask Formatter mask:CPF complete valid" duration="8"/>
|
|
20
36
|
<testCase name="Mask Formatter mask:CPF complete valid literals" duration="1"/>
|
|
21
37
|
<testCase name="Mask Formatter mask:CPF incomplete valid" duration="1"/>
|
|
22
|
-
<testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="
|
|
23
|
-
<testCase name="Mask Formatter mask:CPF too long valid" duration="
|
|
24
|
-
<testCase name="Mask Formatter mask:CPF invalid for string" duration="
|
|
25
|
-
<testCase name="Mask Formatter mask:CPF invalid for being too long" duration="
|
|
26
|
-
<testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="
|
|
38
|
+
<testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="1"/>
|
|
39
|
+
<testCase name="Mask Formatter mask:CPF too long valid" duration="1"/>
|
|
40
|
+
<testCase name="Mask Formatter mask:CPF invalid for string" duration="191"/>
|
|
41
|
+
<testCase name="Mask Formatter mask:CPF invalid for being too long" duration="1"/>
|
|
42
|
+
<testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="1"/>
|
|
27
43
|
<testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="1"/>
|
|
28
44
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
|
|
29
|
-
<testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="
|
|
30
|
-
<testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="
|
|
45
|
+
<testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="1"/>
|
|
46
|
+
<testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="0"/>
|
|
31
47
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
|
|
32
48
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
|
|
33
49
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
@@ -35,65 +51,49 @@
|
|
|
35
51
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
|
|
36
52
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
|
|
37
53
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
38
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="
|
|
54
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
39
55
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
40
56
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
41
57
|
</file>
|
|
42
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaModel.spec.ts">
|
|
43
|
-
<testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="88"/>
|
|
44
|
-
<testCase name="StringUtils it should modify "expressions" and "parameters" properties through Setters methods" duration="1"/>
|
|
45
|
-
<testCase name="StringUtils it should return "expression" and "parameters" setted through constructor method" duration="0"/>
|
|
46
|
-
<testCase name="StringUtils it should return a Criteria class with "expression" and "parameters" as needed setted through "append" method" duration="5"/>
|
|
47
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "append" method" duration="1"/>
|
|
48
|
-
<testCase name="StringUtils it should return undefined as "expression" and "[]" as parameters as we use an empty criteria as first entry in the constructor" duration="1"/>
|
|
49
|
-
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
50
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
51
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
52
|
-
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
53
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
54
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
55
|
-
<testCase name="StringUtils it should return a toJSON object with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
56
|
-
<testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="1"/>
|
|
57
|
-
</file>
|
|
58
58
|
<file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
|
|
59
|
-
<testCase name="HttpProvider Metodo GET" duration="
|
|
60
|
-
</file>
|
|
61
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
|
|
62
|
-
<testCase name="OverflowWatcher should initialize with provided parameters" duration="80"/>
|
|
63
|
-
<testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="2"/>
|
|
64
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate" duration="506"/>
|
|
65
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="205"/>
|
|
66
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="83"/>
|
|
67
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="6"/>
|
|
68
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="6"/>
|
|
69
|
-
<testCase name="OverflowWatcher should ignore elements that can not overflow" duration="105"/>
|
|
70
|
-
<testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="0"/>
|
|
59
|
+
<testCase name="HttpProvider Metodo GET" duration="1"/>
|
|
71
60
|
</file>
|
|
72
61
|
<file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
|
|
73
62
|
<testCase name="HttpProvider Metodo POST" duration="1"/>
|
|
74
63
|
</file>
|
|
75
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/
|
|
76
|
-
<testCase name="StringUtils
|
|
77
|
-
<testCase name="StringUtils
|
|
78
|
-
<testCase name="StringUtils
|
|
79
|
-
|
|
80
|
-
|
|
64
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
|
|
65
|
+
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the constructor" duration="1"/>
|
|
66
|
+
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the setters methods" duration="85"/>
|
|
67
|
+
<testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="0"/>
|
|
68
|
+
</file>
|
|
69
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
|
|
70
|
+
<testCase name="OverflowWatcher should initialize with provided parameters" duration="8"/>
|
|
71
|
+
<testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="1"/>
|
|
72
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate" duration="207"/>
|
|
73
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="170"/>
|
|
74
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="15"/>
|
|
75
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="9"/>
|
|
76
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="74"/>
|
|
77
|
+
<testCase name="OverflowWatcher should ignore elements that can not overflow" duration="18"/>
|
|
78
|
+
<testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="1"/>
|
|
81
79
|
</file>
|
|
82
80
|
<file path="/builds/dti/design-system/sankhyacore/test/util/StringUtils.spec.ts">
|
|
83
|
-
<testCase name="StringUtils valor vazio" duration="
|
|
84
|
-
<testCase name="StringUtils valor em branco" duration="
|
|
81
|
+
<testCase name="StringUtils valor vazio" duration="0"/>
|
|
82
|
+
<testCase name="StringUtils valor em branco" duration="0"/>
|
|
85
83
|
<testCase name="StringUtils valor null" duration="0"/>
|
|
86
|
-
<testCase name="StringUtils valor undefined" duration="
|
|
87
|
-
<testCase name="StringUtils valor 0" duration="
|
|
88
|
-
<testCase name="StringUtils com valor" duration="
|
|
89
|
-
<testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="
|
|
90
|
-
<testCase name="StringUtils should return the original value when called with an object without a toString method" duration="
|
|
91
|
-
<testCase name="StringUtils should return the original value when called with undefined" duration="
|
|
84
|
+
<testCase name="StringUtils valor undefined" duration="1"/>
|
|
85
|
+
<testCase name="StringUtils valor 0" duration="0"/>
|
|
86
|
+
<testCase name="StringUtils com valor" duration="0"/>
|
|
87
|
+
<testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="1"/>
|
|
88
|
+
<testCase name="StringUtils should return the original value when called with an object without a toString method" duration="3"/>
|
|
89
|
+
<testCase name="StringUtils should return the original value when called with undefined" duration="65"/>
|
|
92
90
|
</file>
|
|
93
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/
|
|
94
|
-
<testCase name="StringUtils
|
|
95
|
-
<testCase name="StringUtils
|
|
96
|
-
<testCase name="StringUtils
|
|
91
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
|
|
92
|
+
<testCase name="StringUtils stringToNumber" duration="169"/>
|
|
93
|
+
<testCase name="StringUtils format" duration="19"/>
|
|
94
|
+
<testCase name="StringUtils format without formatnumber parameter" duration="1"/>
|
|
95
|
+
<testCase name="StringUtils format without formatnumber parameter" duration="2"/>
|
|
96
|
+
<testCase name="StringUtils format round number" duration="2"/>
|
|
97
97
|
</file>
|
|
98
98
|
<file path="/builds/dti/design-system/sankhyacore/test/util/TimeFormatter.spec.ts">
|
|
99
99
|
<testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="2"/>
|
|
@@ -101,66 +101,66 @@
|
|
|
101
101
|
<testCase name="TimeFormatter Case: validateTime" duration="1"/>
|
|
102
102
|
</file>
|
|
103
103
|
<file path="/builds/dti/design-system/sankhyacore/test/util/DataUnitStorage.spec.ts">
|
|
104
|
-
<testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="
|
|
104
|
+
<testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="3"/>
|
|
105
105
|
<testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="1"/>
|
|
106
|
-
<testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="
|
|
107
|
-
<testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="
|
|
108
|
-
<testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="
|
|
109
|
-
<testCase name="DataUnitStorage remove should not remove any DataUnit instance if the specified DataUnit instance or name is not found in the DataUnitStorage" duration="
|
|
106
|
+
<testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="1"/>
|
|
107
|
+
<testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="0"/>
|
|
108
|
+
<testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="1"/>
|
|
109
|
+
<testCase name="DataUnitStorage remove should not remove any DataUnit instance if the specified DataUnit instance or name is not found in the DataUnitStorage" duration="1"/>
|
|
110
110
|
</file>
|
|
111
111
|
<file path="/builds/dti/design-system/sankhyacore/test/util/ElementIDUtils.spec.ts">
|
|
112
|
-
<testCase name="addIDInfo 1 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="
|
|
113
|
-
<testCase name="addIDInfo 2 - should add data-element-id with valid id "brComSankhyaFinCadMovimentacaofinanceira_snkApplication"" duration="
|
|
112
|
+
<testCase name="addIDInfo 1 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="14"/>
|
|
113
|
+
<testCase name="addIDInfo 2 - should add data-element-id with valid id "brComSankhyaFinCadMovimentacaofinanceira_snkApplication"" duration="62"/>
|
|
114
114
|
<testCase name="addIDInfo 3 - should add data-element-id with valid id "movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="2"/>
|
|
115
|
-
<testCase name="addIDInfo 4 - should add data-element-id with valid id "meuID2_snkApplication"" duration="
|
|
116
|
-
<testCase name="addIDInfo 5 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="
|
|
117
|
-
<testCase name="addIDInfo 6 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="
|
|
115
|
+
<testCase name="addIDInfo 4 - should add data-element-id with valid id "meuID2_snkApplication"" duration="2"/>
|
|
116
|
+
<testCase name="addIDInfo 5 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="13"/>
|
|
117
|
+
<testCase name="addIDInfo 6 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="2"/>
|
|
118
118
|
<testCase name="addIDInfo 7 - should add data-element-id with valid id "componenteNameTest_snkApplication"" duration="1"/>
|
|
119
119
|
<testCase name="addIDInfo 8 - should add data-element-id with valid id "componentLabel_snkApplication"" duration="1"/>
|
|
120
|
-
<testCase name="addIDInfo 9 - should add data-element-id with valid id "dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="
|
|
121
|
-
<testCase name="addIDInfo 10 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="
|
|
122
|
-
<testCase name="addIDInfo 11 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="
|
|
123
|
-
<testCase name="addIDInfo 12 - should add data-element-id with valid id "dataunitFinanceiro_movFinanceira_movimentacaoFinanceira"" duration="
|
|
120
|
+
<testCase name="addIDInfo 9 - should add data-element-id with valid id "dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="2"/>
|
|
121
|
+
<testCase name="addIDInfo 10 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="2"/>
|
|
122
|
+
<testCase name="addIDInfo 11 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="1"/>
|
|
123
|
+
<testCase name="addIDInfo 12 - should add data-element-id with valid id "dataunitFinanceiro_movFinanceira_movimentacaoFinanceira"" duration="2"/>
|
|
124
124
|
<testCase name="addIDInfo 13 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="1"/>
|
|
125
|
-
<testCase name="addIDInfo 14 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira"" duration="
|
|
125
|
+
<testCase name="addIDInfo 14 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira"" duration="2"/>
|
|
126
126
|
<testCase name="addIDInfo 15 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="1"/>
|
|
127
|
-
<testCase name="addIDInfo 16 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="
|
|
128
|
-
<testCase name="addIDInfo 17 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="
|
|
127
|
+
<testCase name="addIDInfo 16 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="2"/>
|
|
128
|
+
<testCase name="addIDInfo 17 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="65"/>
|
|
129
129
|
<testCase name="addIDInfo 18 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
130
130
|
<testCase name="addIDInfo 19 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
131
131
|
<testCase name="addIDInfo 20 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
132
132
|
<testCase name="addIDInfo 21 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
133
|
-
<testCase name="addIDInfo 22 - should add data-element-id with valid id "bancoObrigatorio_movimentacaoFinanceira"" duration="
|
|
133
|
+
<testCase name="addIDInfo 22 - should add data-element-id with valid id "bancoObrigatorio_movimentacaoFinanceira"" duration="0"/>
|
|
134
134
|
</file>
|
|
135
135
|
<file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
|
|
136
|
-
<testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="
|
|
137
|
-
<testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="
|
|
138
|
-
<testCase name="calcMarginSize should threat values defined as zero" duration="
|
|
136
|
+
<testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="46"/>
|
|
137
|
+
<testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="2"/>
|
|
138
|
+
<testCase name="calcMarginSize should threat values defined as zero" duration="16"/>
|
|
139
139
|
</file>
|
|
140
140
|
<file path="/builds/dti/design-system/sankhyacore/test/dataunit/formatting/PrettyFormatter.spec.ts">
|
|
141
|
-
<testCase name="getFormattedValue should return empty string when value is null" duration="
|
|
142
|
-
<testCase name="getFormattedValue should return empty string when value is not an array" duration="
|
|
143
|
-
<testCase name="getFormattedValue should return empty string when value is an empty array" duration="
|
|
144
|
-
<testCase name="getFormattedValue should return file name when value is an array with one file object" duration="
|
|
145
|
-
<testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="
|
|
146
|
-
<testCase name="getFormattedValue should return empty string for undefined file" duration="
|
|
141
|
+
<testCase name="getFormattedValue should return empty string when value is null" duration="26"/>
|
|
142
|
+
<testCase name="getFormattedValue should return empty string when value is not an array" duration="0"/>
|
|
143
|
+
<testCase name="getFormattedValue should return empty string when value is an empty array" duration="1"/>
|
|
144
|
+
<testCase name="getFormattedValue should return file name when value is an array with one file object" duration="0"/>
|
|
145
|
+
<testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="10"/>
|
|
146
|
+
<testCase name="getFormattedValue should return empty string for undefined file" duration="1"/>
|
|
147
147
|
<testCase name="getFormattedValue should handle OBJECT type with value field" duration="0"/>
|
|
148
148
|
<testCase name="getFormattedValue should return empty string when value is undefined" duration="0"/>
|
|
149
|
-
<testCase name="getFormattedValue should return value as string when value is not an object" duration="
|
|
149
|
+
<testCase name="getFormattedValue should return value as string when value is not an object" duration="0"/>
|
|
150
150
|
<testCase name="getFormattedValue should return value.toString() when value is an object without value property" duration="0"/>
|
|
151
151
|
<testCase name="getFormattedValue should handle BOOLEAN type" duration="1"/>
|
|
152
|
-
<testCase name="getFormattedValue should format numbers correctly" duration="
|
|
153
|
-
<testCase name="getFormattedValue should format dates correctly" duration="
|
|
152
|
+
<testCase name="getFormattedValue should format numbers correctly" duration="17"/>
|
|
153
|
+
<testCase name="getFormattedValue should format dates correctly" duration="6"/>
|
|
154
154
|
<testCase name="getFormattedValue should format times correctly" duration="0"/>
|
|
155
155
|
<testCase name="getFormattedValue should format datetime correctly" duration="1"/>
|
|
156
|
-
<testCase name="getFormattedValue should call toString with correct parameters" duration="
|
|
156
|
+
<testCase name="getFormattedValue should call toString with correct parameters" duration="1"/>
|
|
157
157
|
<testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="1"/>
|
|
158
158
|
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="0"/>
|
|
159
159
|
<testCase name="getFormattedValue should return value with OPTIONSELECTOR and no matching option" duration="1"/>
|
|
160
160
|
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and value as object" duration="0"/>
|
|
161
161
|
<testCase name="getFormattedValue should return empty string with OPTIONSELECTOR and value as null" duration="0"/>
|
|
162
|
-
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="
|
|
163
|
-
<testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="
|
|
164
|
-
<testCase name="getFormattedValue should format masked values correctly" duration="
|
|
162
|
+
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="1"/>
|
|
163
|
+
<testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="0"/>
|
|
164
|
+
<testCase name="getFormattedValue should format masked values correctly" duration="2"/>
|
|
165
165
|
</file>
|
|
166
166
|
</unitTest>
|
package/src/utils/DateUtils.ts
CHANGED
|
@@ -39,6 +39,9 @@ export default class DateUtils{
|
|
|
39
39
|
* @returns - Uma string com as horas no formato HH:MM ou HH:MM:SS.
|
|
40
40
|
*/
|
|
41
41
|
public static formatTime(date: Date, showSeconds: boolean = false): string{
|
|
42
|
+
if (date == null){
|
|
43
|
+
return '';
|
|
44
|
+
}
|
|
42
45
|
const timeOptions:Intl.DateTimeFormatOptions = {hour: "2-digit", minute: "2-digit", second: showSeconds ? "2-digit" : undefined};
|
|
43
46
|
return new Intl.DateTimeFormat("pt-BR", timeOptions).format(date);
|
|
44
47
|
}
|