@futdevpro/fsm-dynamo 1.10.35 → 1.10.37
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/build/_collections/utils/array.util.spec.js +34 -34
- package/build/_collections/utils/array.util.spec.js.map +1 -1
- package/build/_collections/utils/log.util.spec.js +12 -12
- package/build/_collections/utils/log.util.spec.js.map +1 -1
- package/build/_collections/utils/math/box-bounds.spec.js +11 -11
- package/build/_collections/utils/math/box-bounds.spec.js.map +1 -1
- package/build/_collections/utils/math/box-bounds.util.spec.js +8 -8
- package/build/_collections/utils/math/box-bounds.util.spec.js.map +1 -1
- package/build/_collections/utils/math/math.util.spec.js +24 -24
- package/build/_collections/utils/math/math.util.spec.js.map +1 -1
- package/build/_collections/utils/math/random.util.spec.js +13 -13
- package/build/_collections/utils/math/random.util.spec.js.map +1 -1
- package/build/_collections/utils/math/trigonometry.util.spec.js +13 -13
- package/build/_collections/utils/math/trigonometry.util.spec.js.map +1 -1
- package/build/_collections/utils/math/vector2.util.spec.js +14 -14
- package/build/_collections/utils/math/vector2.util.spec.js.map +1 -1
- package/build/_collections/utils/regex/password-regex.util.spec.js +8 -8
- package/build/_collections/utils/regex/password-regex.util.spec.js.map +1 -1
- package/build/_collections/utils/regex/regex.util.spec.js +2 -2
- package/build/_collections/utils/regex/regex.util.spec.js.map +1 -1
- package/build/_collections/utils/regex/username-regex.util.spec.js +3 -3
- package/build/_collections/utils/regex/username-regex.util.spec.js.map +1 -1
- package/build/_collections/utils/round-list.util.spec.js +20 -20
- package/build/_collections/utils/round-list.util.spec.js.map +1 -1
- package/build/_collections/utils/shared.util.spec.js +15 -15
- package/build/_collections/utils/shared.util.spec.js.map +1 -1
- package/build/_collections/utils/string.util.spec.js +9 -9
- package/build/_collections/utils/string.util.spec.js.map +1 -1
- package/build/_collections/utils/time.util.spec.js +1 -1
- package/build/_collections/utils/time.util.spec.js.map +1 -1
- package/build/_collections/utils/type-cloning-facility.util.spec.js +5 -5
- package/build/_collections/utils/type-cloning-facility.util.spec.js.map +1 -1
- package/build/_collections/utils/utilities.util.spec.js +35 -35
- package/build/_collections/utils/utilities.util.spec.js.map +1 -1
- package/build/_collections/utils/uuid.util.spec.js +6 -6
- package/build/_collections/utils/uuid.util.spec.js.map +1 -1
- package/build/_models/control-models/data-model-params.control-model.spec.js +6 -6
- package/build/_models/control-models/data-model-params.control-model.spec.js.map +1 -1
- package/build/_models/control-models/data-property-params.control-model.spec.js +2 -2
- package/build/_models/control-models/data-property-params.control-model.spec.js.map +1 -1
- package/build/_models/control-models/error.control-model.d.ts +1 -0
- package/build/_models/control-models/error.control-model.d.ts.map +1 -1
- package/build/_models/control-models/error.control-model.js +7 -2
- package/build/_models/control-models/error.control-model.js.map +1 -1
- package/build/_models/control-models/error.control-model.spec.js +157 -157
- package/build/_models/control-models/error.control-model.spec.js.map +1 -1
- package/build/_models/control-models/poll.control-model.spec.js +2 -2
- package/build/_models/control-models/poll.control-model.spec.js.map +1 -1
- package/build/_models/control-models/range-value.control-model.spec.js +27 -27
- package/build/_models/control-models/range-value.control-model.spec.js.map +1 -1
- package/build/_modules/crypto/_collections/crypto.util.spec.js +31 -31
- package/build/_modules/crypto/_collections/crypto.util.spec.js.map +1 -1
- package/build/_modules/custom-data/_models/cud.data-model.spec.js +7 -7
- package/build/_modules/custom-data/_models/cud.data-model.spec.js.map +1 -1
- package/build/_modules/location/_collections/loc-regions.util.spec.js +10 -10
- package/build/_modules/location/_collections/loc-regions.util.spec.js.map +1 -1
- package/build/_modules/location/_collections/loc.util.spec.js +6 -6
- package/build/_modules/location/_collections/loc.util.spec.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.spec.js +6 -6
- package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.spec.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.spec.js +6 -6
- package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.spec.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.spec.js +6 -6
- package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.spec.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.spec.js +6 -6
- package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.spec.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.spec.js +8 -8
- package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.spec.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.spec.js +5 -5
- package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.spec.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.spec.js +8 -8
- package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.spec.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.spec.js +4 -4
- package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.spec.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.spec.js +9 -9
- package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.spec.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.spec.js +4 -4
- package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.spec.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.spec.js +7 -7
- package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.spec.js.map +1 -1
- package/build/_modules/socket/_models/sck-client-params.control-model.spec.js +5 -5
- package/build/_modules/socket/_models/sck-client-params.control-model.spec.js.map +1 -1
- package/build/_modules/socket/_models/sck-socket-event.control-model.spec.js +5 -5
- package/build/_modules/socket/_models/sck-socket-event.control-model.spec.js.map +1 -1
- package/build/_modules/socket/_services/sck-client.service-base.spec.js +7 -7
- package/build/_modules/socket/_services/sck-client.service-base.spec.js.map +1 -1
- package/build/_modules/usage/_models/usg-action.control-model.spec.js +4 -4
- package/build/_modules/usage/_models/usg-action.control-model.spec.js.map +1 -1
- package/build/_modules/usage/_models/usg-daily-usage-data.control-model.spec.js +3 -3
- package/build/_modules/usage/_models/usg-daily-usage-data.control-model.spec.js.map +1 -1
- package/build/_modules/usage/_models/usg-data.control-model.spec.js +4 -4
- package/build/_modules/usage/_models/usg-data.control-model.spec.js.map +1 -1
- package/build/_modules/usage/_models/usg-session.data-model.spec.js +7 -7
- package/build/_modules/usage/_models/usg-session.data-model.spec.js.map +1 -1
- package/futdevpro-fsm-dynamo-01.10.37.tgz +0 -0
- package/package.json +1 -1
- package/src/_collections/utils/array.util.spec.ts +34 -34
- package/src/_collections/utils/log.util.spec.ts +12 -12
- package/src/_collections/utils/math/box-bounds.spec.ts +11 -11
- package/src/_collections/utils/math/box-bounds.util.spec.ts +8 -8
- package/src/_collections/utils/math/math.util.spec.ts +24 -24
- package/src/_collections/utils/math/random.util.spec.ts +13 -13
- package/src/_collections/utils/math/trigonometry.util.spec.ts +13 -13
- package/src/_collections/utils/math/vector2.util.spec.ts +14 -14
- package/src/_collections/utils/regex/password-regex.util.spec.ts +8 -8
- package/src/_collections/utils/regex/regex.util.spec.ts +2 -2
- package/src/_collections/utils/regex/username-regex.util.spec.ts +3 -3
- package/src/_collections/utils/round-list.util.spec.ts +20 -20
- package/src/_collections/utils/shared.util.spec.ts +15 -15
- package/src/_collections/utils/string.util.spec.ts +9 -9
- package/src/_collections/utils/time.util.spec.ts +1 -1
- package/src/_collections/utils/type-cloning-facility.util.spec.ts +5 -5
- package/src/_collections/utils/utilities.util.spec.ts +35 -35
- package/src/_collections/utils/uuid.util.spec.ts +6 -6
- package/src/_models/control-models/data-model-params.control-model.spec.ts +6 -6
- package/src/_models/control-models/data-property-params.control-model.spec.ts +2 -2
- package/src/_models/control-models/error.control-model.spec.ts +157 -157
- package/src/_models/control-models/error.control-model.ts +6 -1
- package/src/_models/control-models/poll.control-model.spec.ts +2 -2
- package/src/_models/control-models/range-value.control-model.spec.ts +27 -27
- package/src/_modules/crypto/_collections/crypto.util.spec.ts +31 -31
- package/src/_modules/custom-data/_models/cud.data-model.spec.ts +7 -7
- package/src/_modules/location/_collections/loc-regions.util.spec.ts +10 -10
- package/src/_modules/location/_collections/loc.util.spec.ts +6 -6
- package/src/_modules/pipe/_collections/utils/pip-country-pipe.util.spec.ts +6 -6
- package/src/_modules/pipe/_collections/utils/pip-custom-pipe.util.spec.ts +6 -6
- package/src/_modules/pipe/_collections/utils/pip-division-pipe.util.spec.ts +6 -6
- package/src/_modules/pipe/_collections/utils/pip-list-pipe.util.spec.ts +6 -6
- package/src/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.spec.ts +8 -8
- package/src/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.spec.ts +5 -5
- package/src/_modules/pipe/_collections/utils/pip-range-pipe.util.spec.ts +8 -8
- package/src/_modules/pipe/_collections/utils/pip-region-pipe.util.spec.ts +4 -4
- package/src/_modules/pipe/_collections/utils/pip-replace-pipe.util.spec.ts +9 -9
- package/src/_modules/pipe/_collections/utils/pip-slider-pipe.util.spec.ts +4 -4
- package/src/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.spec.ts +7 -7
- package/src/_modules/socket/_models/sck-client-params.control-model.spec.ts +5 -5
- package/src/_modules/socket/_models/sck-socket-event.control-model.spec.ts +5 -5
- package/src/_modules/socket/_services/sck-client.service-base.spec.ts +7 -7
- package/src/_modules/usage/_models/usg-action.control-model.spec.ts +4 -4
- package/src/_modules/usage/_models/usg-daily-usage-data.control-model.spec.ts +3 -3
- package/src/_modules/usage/_models/usg-data.control-model.spec.ts +4 -4
- package/src/_modules/usage/_models/usg-session.data-model.spec.ts +7 -7
- package/futdevpro-fsm-dynamo-01.10.35.tgz +0 -0
|
@@ -12,7 +12,7 @@ function testFormatter(any: any): any {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
describe('DyFM_Error;', (): void => {
|
|
15
|
+
describe('| DyFM_Error;', (): void => {
|
|
16
16
|
let error_base: Error;
|
|
17
17
|
let error_0: DyFM_Error;
|
|
18
18
|
let error_stack_1: DyFM_Error;
|
|
@@ -122,92 +122,92 @@ describe('DyFM_Error;', (): void => {
|
|
|
122
122
|
);
|
|
123
123
|
});
|
|
124
124
|
|
|
125
|
-
describe('should be defined;', (): void => {
|
|
126
|
-
it('error object', (): void => {
|
|
125
|
+
describe('| should be defined;', (): void => {
|
|
126
|
+
it('| error object', (): void => {
|
|
127
127
|
expect(error_0).toBeDefined();
|
|
128
128
|
});
|
|
129
129
|
|
|
130
|
-
it('error stack object', (): void => {
|
|
130
|
+
it('| error stack object', (): void => {
|
|
131
131
|
expect(error_stack_1).toBeDefined();
|
|
132
132
|
});
|
|
133
133
|
|
|
134
|
-
it('greater error stack object', (): void => {
|
|
134
|
+
it('| greater error stack object', (): void => {
|
|
135
135
|
expect(error_stack_2).toBeDefined();
|
|
136
136
|
});
|
|
137
137
|
|
|
138
|
-
it('self defined error object', (): void => {
|
|
138
|
+
it('| self defined error object', (): void => {
|
|
139
139
|
expect(error_selfDefined).toBeDefined();
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
142
|
|
|
143
|
-
describe('should be instance of DyFM_Error;', (): void => {
|
|
144
|
-
it('error as DyFM_Error object', (): void => {
|
|
143
|
+
describe('| should be instance of DyFM_Error;', (): void => {
|
|
144
|
+
it('| error as DyFM_Error object', (): void => {
|
|
145
145
|
expect(error_0).toBeInstanceOf(DyFM_Error);
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
it('error stack as DyFM_Error object', (): void => {
|
|
148
|
+
it('| error stack as DyFM_Error object', (): void => {
|
|
149
149
|
expect(error_stack_1).toBeInstanceOf(DyFM_Error);
|
|
150
150
|
});
|
|
151
151
|
|
|
152
|
-
it('greater error stack as DyFM_Error object', (): void => {
|
|
152
|
+
it('| greater error stack as DyFM_Error object', (): void => {
|
|
153
153
|
expect(error_stack_2).toBeInstanceOf(DyFM_Error);
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
-
it('self defined error as DyFM_Error object', (): void => {
|
|
156
|
+
it('| self defined error as DyFM_Error object', (): void => {
|
|
157
157
|
expect(error_selfDefined).toBeInstanceOf(DyFM_Error);
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
160
|
|
|
161
|
-
describe('should have the proper _errorCode;', (): void => {
|
|
162
|
-
it('on error_0', (): void => {
|
|
161
|
+
describe('| should have the proper _errorCode;', (): void => {
|
|
162
|
+
it('| on error_0', (): void => {
|
|
163
163
|
expect(error_0._errorCode).toBe(errorCode_0);
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
-
it('on error_stack_1', (): void => {
|
|
166
|
+
it('| on error_stack_1', (): void => {
|
|
167
167
|
expect(error_stack_1._errorCode).toBe(errorCode_0);
|
|
168
168
|
});
|
|
169
169
|
|
|
170
|
-
it('on error_stack_2', (): void => {
|
|
170
|
+
it('| on error_stack_2', (): void => {
|
|
171
171
|
expect(error_stack_2._errorCode).toBe(errorCode_0);
|
|
172
172
|
});
|
|
173
173
|
|
|
174
|
-
it('on self defined error', (): void => {
|
|
174
|
+
it('| on self defined error', (): void => {
|
|
175
175
|
expect(error_selfDefined._errorCode).toBe(DyFM_error_defaults.errorCode);
|
|
176
176
|
});
|
|
177
177
|
});
|
|
178
178
|
|
|
179
|
-
describe('should have the proper _errorCodes;', (): void => {
|
|
180
|
-
it('on error_0', (): void => {
|
|
179
|
+
describe('| should have the proper _errorCodes;', (): void => {
|
|
180
|
+
it('| on error_0', (): void => {
|
|
181
181
|
expect(error_0._errorCodes).toEqual([ errorCode_0 ]);
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
-
it('on error_stack_1', (): void => {
|
|
184
|
+
it('| on error_stack_1', (): void => {
|
|
185
185
|
expect(error_stack_1._errorCodes).toEqual([ errorCode_0, errorCode_1 ]);
|
|
186
186
|
});
|
|
187
187
|
|
|
188
|
-
it('on error_stack_2', (): void => {
|
|
188
|
+
it('| on error_stack_2', (): void => {
|
|
189
189
|
expect(error_stack_2._errorCodes).toEqual([ errorCode_0, errorCode_1, errorCode_2 ]);
|
|
190
190
|
});
|
|
191
191
|
|
|
192
|
-
it('on self defined error', (): void => {
|
|
192
|
+
it('| on self defined error', (): void => {
|
|
193
193
|
expect(error_selfDefined._errorCodes).toEqual([ DyFM_error_defaults.errorCode ]);
|
|
194
194
|
});
|
|
195
195
|
});
|
|
196
196
|
|
|
197
|
-
describe('should have the proper _message;', (): void => {
|
|
198
|
-
it('on error_0', (): void => {
|
|
197
|
+
describe('| should have the proper _message;', (): void => {
|
|
198
|
+
it('| on error_0', (): void => {
|
|
199
199
|
expect(error_0._message).toBe(message_base);
|
|
200
200
|
});
|
|
201
201
|
|
|
202
|
-
it('on error_stack_1', (): void => {
|
|
202
|
+
it('| on error_stack_1', (): void => {
|
|
203
203
|
expect(error_stack_1._message).toBe(message_base);
|
|
204
204
|
});
|
|
205
205
|
|
|
206
|
-
it('on error_stack_2', (): void => {
|
|
206
|
+
it('| on error_stack_2', (): void => {
|
|
207
207
|
expect(error_stack_2._message).toBe(message_base);
|
|
208
208
|
});
|
|
209
209
|
|
|
210
|
-
it('on self defined error (stack)', (): void => {
|
|
210
|
+
it('| on self defined error (stack)', (): void => {
|
|
211
211
|
expect(
|
|
212
212
|
error_selfDefined._message.includes(message_selfDefined)
|
|
213
213
|
).withContext(
|
|
@@ -218,7 +218,7 @@ describe('DyFM_Error;', (): void => {
|
|
|
218
218
|
).toBe(true);
|
|
219
219
|
});
|
|
220
220
|
|
|
221
|
-
it('on self defined error (flag)', (): void => {
|
|
221
|
+
it('| on self defined error (flag)', (): void => {
|
|
222
222
|
expect(
|
|
223
223
|
error_selfDefined._message.includes(DyFM_error_defaults.message)
|
|
224
224
|
).withContext(
|
|
@@ -230,20 +230,20 @@ describe('DyFM_Error;', (): void => {
|
|
|
230
230
|
});
|
|
231
231
|
});
|
|
232
232
|
|
|
233
|
-
describe('should have the proper _messages;', (): void => {
|
|
234
|
-
it('on error_0', (): void => {
|
|
233
|
+
describe('| should have the proper _messages;', (): void => {
|
|
234
|
+
it('| on error_0', (): void => {
|
|
235
235
|
expect(error_0._messages).toEqual([ message_base ]);
|
|
236
236
|
});
|
|
237
237
|
|
|
238
|
-
it('on error_stack_1', (): void => {
|
|
238
|
+
it('| on error_stack_1', (): void => {
|
|
239
239
|
expect(error_stack_1._messages).toEqual([ message_base, message_1 ]);
|
|
240
240
|
});
|
|
241
241
|
|
|
242
|
-
it('on error_stack_2', (): void => {
|
|
242
|
+
it('| on error_stack_2', (): void => {
|
|
243
243
|
expect(error_stack_2._messages).toEqual([ message_base, message_1, message_2 ]);
|
|
244
244
|
});
|
|
245
245
|
|
|
246
|
-
it('on self defined error (stack)', (): void => {
|
|
246
|
+
it('| on self defined error (stack)', (): void => {
|
|
247
247
|
expect(
|
|
248
248
|
error_selfDefined._messages.length === 1 &&
|
|
249
249
|
error_selfDefined._messages?.[0]?.includes(message_selfDefined)
|
|
@@ -255,7 +255,7 @@ describe('DyFM_Error;', (): void => {
|
|
|
255
255
|
).toBe(true);
|
|
256
256
|
});
|
|
257
257
|
|
|
258
|
-
it('on self defined error (flag)', (): void => {
|
|
258
|
+
it('| on self defined error (flag)', (): void => {
|
|
259
259
|
expect(
|
|
260
260
|
error_selfDefined._messages.length === 1 &&
|
|
261
261
|
error_selfDefined._messages?.[0]?.includes(DyFM_error_defaults.message)
|
|
@@ -268,76 +268,76 @@ describe('DyFM_Error;', (): void => {
|
|
|
268
268
|
});
|
|
269
269
|
});
|
|
270
270
|
|
|
271
|
-
describe('should have the proper __userMessage;', (): void => {
|
|
272
|
-
it('on error_0', (): void => {
|
|
271
|
+
describe('| should have the proper __userMessage;', (): void => {
|
|
272
|
+
it('| on error_0', (): void => {
|
|
273
273
|
expect(error_0.__userMessage).toBe(userMessageResult_0);
|
|
274
274
|
});
|
|
275
275
|
|
|
276
|
-
it('on error_stack_1', (): void => {
|
|
276
|
+
it('| on error_stack_1', (): void => {
|
|
277
277
|
expect(error_stack_1.__userMessage).toBe(userMessageResult_0);
|
|
278
278
|
});
|
|
279
279
|
|
|
280
|
-
it('on error_stack_2', (): void => {
|
|
280
|
+
it('| on error_stack_2', (): void => {
|
|
281
281
|
expect(error_stack_2.__userMessage).toBe(userMessageResult_0);
|
|
282
282
|
});
|
|
283
283
|
|
|
284
|
-
it('on self defined error', (): void => {
|
|
284
|
+
it('| on self defined error', (): void => {
|
|
285
285
|
expect(error_selfDefined.__userMessage).toBeUndefined();
|
|
286
286
|
});
|
|
287
287
|
});
|
|
288
288
|
|
|
289
|
-
describe('should have the proper __userMessages;', (): void => {
|
|
290
|
-
it('on error_0', (): void => {
|
|
289
|
+
describe('| should have the proper __userMessages;', (): void => {
|
|
290
|
+
it('| on error_0', (): void => {
|
|
291
291
|
expect(error_0.__userMessages).toEqual([ userMessageResult_0 ]);
|
|
292
292
|
});
|
|
293
293
|
|
|
294
|
-
it('on error_stack_1', (): void => {
|
|
294
|
+
it('| on error_stack_1', (): void => {
|
|
295
295
|
expect(error_stack_1.__userMessages).toEqual(
|
|
296
296
|
[ userMessageResult_0, DyFM_error_defaults.userMessage ]
|
|
297
297
|
);
|
|
298
298
|
});
|
|
299
299
|
|
|
300
|
-
it('on error_stack_2', (): void => {
|
|
300
|
+
it('| on error_stack_2', (): void => {
|
|
301
301
|
expect(error_stack_2.__userMessages).toEqual(
|
|
302
302
|
[ userMessageResult_0, DyFM_error_defaults.userMessage, userMessageResult_2 ]
|
|
303
303
|
);
|
|
304
304
|
});
|
|
305
305
|
|
|
306
|
-
it('on self defined error', (): void => {
|
|
306
|
+
it('| on self defined error', (): void => {
|
|
307
307
|
expect(error_selfDefined.__userMessages).toEqual([ DyFM_error_defaults.userMessage ]);
|
|
308
308
|
});
|
|
309
309
|
});
|
|
310
310
|
|
|
311
|
-
describe('should have proper error;', (): void => {
|
|
312
|
-
it('on error_0', (): void => {
|
|
311
|
+
describe('| should have proper error;', (): void => {
|
|
312
|
+
it('| on error_0', (): void => {
|
|
313
313
|
expect(testFormatter(error_0.error)).toBe(
|
|
314
314
|
testFormatter(error_base)
|
|
315
315
|
);
|
|
316
316
|
});
|
|
317
317
|
|
|
318
|
-
it('on error_stack_1', (): void => {
|
|
318
|
+
it('| on error_stack_1', (): void => {
|
|
319
319
|
expect(testFormatter(error_stack_1.error)).toBe(
|
|
320
320
|
testFormatter(error_base)
|
|
321
321
|
);
|
|
322
322
|
});
|
|
323
323
|
|
|
324
|
-
it('on error_stack_2', (): void => {
|
|
324
|
+
it('| on error_stack_2', (): void => {
|
|
325
325
|
expect(testFormatter(error_stack_2.error)).toBe(
|
|
326
326
|
testFormatter(error_base)
|
|
327
327
|
);
|
|
328
328
|
});
|
|
329
329
|
|
|
330
|
-
it('on self defined error', (): void => {
|
|
330
|
+
it('| on self defined error', (): void => {
|
|
331
331
|
expect(testFormatter(error_selfDefined.error)).toBeDefined();
|
|
332
332
|
});
|
|
333
333
|
});
|
|
334
334
|
|
|
335
|
-
describe('should have the proper errors;', (): void => {
|
|
336
|
-
it('on error_0', (): void => {
|
|
335
|
+
describe('| should have the proper errors;', (): void => {
|
|
336
|
+
it('| on error_0', (): void => {
|
|
337
337
|
expect(error_0.errors).toEqual([ error_base ]);
|
|
338
338
|
});
|
|
339
339
|
|
|
340
|
-
it('on error_stack_1', (): void => {
|
|
340
|
+
it('| on error_stack_1', (): void => {
|
|
341
341
|
const error_0_withoutSubErrors = { ...error_0 } as DyFM_Error;
|
|
342
342
|
|
|
343
343
|
delete error_0_withoutSubErrors.errors;
|
|
@@ -348,7 +348,7 @@ describe('DyFM_Error;', (): void => {
|
|
|
348
348
|
);
|
|
349
349
|
});
|
|
350
350
|
|
|
351
|
-
it('on error_stack_2', (): void => {
|
|
351
|
+
it('| on error_stack_2', (): void => {
|
|
352
352
|
const error_0_withoutSubErrors = { ...error_0 } as DyFM_Error;
|
|
353
353
|
const error_stack_1_withoutSubErrors = { ...error_stack_1 } as DyFM_Error;
|
|
354
354
|
|
|
@@ -362,322 +362,322 @@ describe('DyFM_Error;', (): void => {
|
|
|
362
362
|
);
|
|
363
363
|
});
|
|
364
364
|
|
|
365
|
-
it('on self defined error', (): void => {
|
|
365
|
+
it('| on self defined error', (): void => {
|
|
366
366
|
expect(error_selfDefined?.errors?.length).toBe(1);
|
|
367
367
|
});
|
|
368
368
|
});
|
|
369
369
|
|
|
370
|
-
describe('should have proper handled;', (): void => {
|
|
371
|
-
it('on error_0', (): void => {
|
|
370
|
+
describe('| should have proper handled;', (): void => {
|
|
371
|
+
it('| on error_0', (): void => {
|
|
372
372
|
expect(error_0.___handled).toBe(false);
|
|
373
373
|
});
|
|
374
374
|
|
|
375
|
-
it('on error_stack_1', (): void => {
|
|
375
|
+
it('| on error_stack_1', (): void => {
|
|
376
376
|
expect(error_stack_1.___handled).toBe(true);
|
|
377
377
|
});
|
|
378
378
|
|
|
379
|
-
it('on error_stack_2', (): void => {
|
|
379
|
+
it('| on error_stack_2', (): void => {
|
|
380
380
|
expect(error_stack_2.___handled).toBe(true);
|
|
381
381
|
});
|
|
382
382
|
|
|
383
|
-
it('on self defined error', (): void => {
|
|
383
|
+
it('| on self defined error', (): void => {
|
|
384
384
|
expect(error_selfDefined.___handled).toBe(false);
|
|
385
385
|
});
|
|
386
386
|
});
|
|
387
387
|
|
|
388
|
-
describe('should have status: undefined;', (): void => {
|
|
389
|
-
it('on error_0', (): void => {
|
|
388
|
+
describe('| should have status: undefined;', (): void => {
|
|
389
|
+
it('| on error_0', (): void => {
|
|
390
390
|
expect(error_0.___status).toBe(undefined);
|
|
391
391
|
});
|
|
392
392
|
|
|
393
|
-
it('on error_stack_1', (): void => {
|
|
393
|
+
it('| on error_stack_1', (): void => {
|
|
394
394
|
expect(error_stack_1.___status).toBe(undefined);
|
|
395
395
|
});
|
|
396
396
|
|
|
397
|
-
it('on error_stack_2', (): void => {
|
|
397
|
+
it('| on error_stack_2', (): void => {
|
|
398
398
|
expect(error_stack_2.___status).toBe(undefined);
|
|
399
399
|
});
|
|
400
400
|
|
|
401
|
-
it('on self defined error', (): void => {
|
|
401
|
+
it('| on self defined error', (): void => {
|
|
402
402
|
expect(error_selfDefined.___status).toBe(undefined);
|
|
403
403
|
});
|
|
404
404
|
});
|
|
405
405
|
|
|
406
|
-
describe('should have the proper issuer;', (): void => {
|
|
407
|
-
it('on error_0', (): void => {
|
|
406
|
+
describe('| should have the proper issuer;', (): void => {
|
|
407
|
+
it('| on error_0', (): void => {
|
|
408
408
|
expect(error_0.___issuer).toBe(issuer);
|
|
409
409
|
});
|
|
410
410
|
|
|
411
|
-
it('on error_stack_1', (): void => {
|
|
411
|
+
it('| on error_stack_1', (): void => {
|
|
412
412
|
expect(error_stack_1.___issuer).toBe(issuer);
|
|
413
413
|
});
|
|
414
414
|
|
|
415
|
-
it('on error_stack_2', (): void => {
|
|
415
|
+
it('| on error_stack_2', (): void => {
|
|
416
416
|
expect(error_stack_2.___issuer).toBe(issuer);
|
|
417
417
|
});
|
|
418
418
|
|
|
419
|
-
it('on self defined error', (): void => {
|
|
419
|
+
it('| on self defined error', (): void => {
|
|
420
420
|
expect(error_selfDefined.___issuer).toBe(DyFM_error_defaults.issuer);
|
|
421
421
|
});
|
|
422
422
|
});
|
|
423
423
|
|
|
424
|
-
describe('should have get proper additionalContent;', (): void => {
|
|
425
|
-
it('on error_0', (): void => {
|
|
424
|
+
describe('| should have get proper additionalContent;', (): void => {
|
|
425
|
+
it('| on error_0', (): void => {
|
|
426
426
|
expect(error_0.additionalContent).toEqual({});
|
|
427
427
|
});
|
|
428
428
|
|
|
429
|
-
it('on error_stack_1', (): void => {
|
|
429
|
+
it('| on error_stack_1', (): void => {
|
|
430
430
|
expect(error_stack_1.additionalContent).toEqual(additionalContent_1);
|
|
431
431
|
});
|
|
432
432
|
|
|
433
|
-
it('on error_stack_2', (): void => {
|
|
433
|
+
it('| on error_stack_2', (): void => {
|
|
434
434
|
expect(error_stack_2.additionalContent).toEqual({
|
|
435
435
|
...additionalContent_1,
|
|
436
436
|
...additionalContent_2,
|
|
437
437
|
});
|
|
438
438
|
});
|
|
439
439
|
|
|
440
|
-
it('on self defined error', (): void => {
|
|
440
|
+
it('| on self defined error', (): void => {
|
|
441
441
|
expect(error_selfDefined.additionalContent).toEqual({});
|
|
442
442
|
});
|
|
443
443
|
});
|
|
444
444
|
|
|
445
|
-
describe('should have the proper issuerSystem;', (): void => {
|
|
446
|
-
it('on error_0', (): void => {
|
|
445
|
+
describe('| should have the proper issuerSystem;', (): void => {
|
|
446
|
+
it('| on error_0', (): void => {
|
|
447
447
|
expect(error_0.___issuerSystem).toBe(issuerSystem);
|
|
448
448
|
});
|
|
449
449
|
|
|
450
|
-
it('on error_stack_1', (): void => {
|
|
450
|
+
it('| on error_stack_1', (): void => {
|
|
451
451
|
expect(error_stack_1.___issuerSystem).toBe(issuerSystem);
|
|
452
452
|
});
|
|
453
453
|
|
|
454
|
-
it('on error_stack_2', (): void => {
|
|
454
|
+
it('| on error_stack_2', (): void => {
|
|
455
455
|
expect(error_stack_2.___issuerSystem).toBe(issuerSystem);
|
|
456
456
|
});
|
|
457
457
|
|
|
458
|
-
it('on self defined error', (): void => {
|
|
458
|
+
it('| on self defined error', (): void => {
|
|
459
459
|
expect(error_selfDefined.___issuerSystem).toBe(DyFM_error_defaults.issuerSystem);
|
|
460
460
|
});
|
|
461
461
|
});
|
|
462
462
|
|
|
463
|
-
describe('should have the proper issuerService;', (): void => {
|
|
464
|
-
it('on error_0', (): void => {
|
|
463
|
+
describe('| should have the proper issuerService;', (): void => {
|
|
464
|
+
it('| on error_0', (): void => {
|
|
465
465
|
expect(error_0.___issuerService).toBe(issuerService_0);
|
|
466
466
|
});
|
|
467
467
|
|
|
468
|
-
it('on error_stack_1', (): void => {
|
|
468
|
+
it('| on error_stack_1', (): void => {
|
|
469
469
|
expect(error_stack_1.___issuerService).toBe(issuerService_1);
|
|
470
470
|
});
|
|
471
471
|
|
|
472
|
-
it('on error_stack_2', (): void => {
|
|
472
|
+
it('| on error_stack_2', (): void => {
|
|
473
473
|
expect(error_stack_2.___issuerService).toBe(issuerService_1);
|
|
474
474
|
});
|
|
475
475
|
|
|
476
|
-
it('on self defined error', (): void => {
|
|
476
|
+
it('| on self defined error', (): void => {
|
|
477
477
|
expect(error_selfDefined.___issuerService).toBe(DyFM_error_defaults.issuerService);
|
|
478
478
|
});
|
|
479
479
|
});
|
|
480
480
|
|
|
481
|
-
describe('should have get proper simplified;', (): void => {
|
|
481
|
+
describe('| should have get proper simplified;', (): void => {
|
|
482
482
|
let simplified;
|
|
483
483
|
|
|
484
|
-
describe('on error_0;', (): void => {
|
|
484
|
+
describe('| on error_0;', (): void => {
|
|
485
485
|
beforeEach((): void => {
|
|
486
486
|
simplified = error_0.getErrorSimplified();
|
|
487
487
|
});
|
|
488
488
|
|
|
489
|
-
it('should be defined', (): void => {
|
|
489
|
+
it('| should be defined', (): void => {
|
|
490
490
|
expect(simplified).toBeDefined();
|
|
491
491
|
});
|
|
492
492
|
|
|
493
|
-
it('should have errorCode', (): void => {
|
|
493
|
+
it('| should have errorCode', (): void => {
|
|
494
494
|
expect(simplified.errorCode).toBeDefined();
|
|
495
495
|
});
|
|
496
496
|
|
|
497
|
-
it('should have message', (): void => {
|
|
497
|
+
it('| should have message', (): void => {
|
|
498
498
|
expect(simplified.message).toBeDefined();
|
|
499
499
|
});
|
|
500
500
|
|
|
501
|
-
it('should have userMessage', (): void => {
|
|
501
|
+
it('| should have userMessage', (): void => {
|
|
502
502
|
expect(simplified.userMessage).toBeDefined();
|
|
503
503
|
});
|
|
504
504
|
|
|
505
|
-
it('should have stack', (): void => {
|
|
505
|
+
it('| should have stack', (): void => {
|
|
506
506
|
expect(simplified.stack).toBeDefined();
|
|
507
507
|
});
|
|
508
508
|
|
|
509
|
-
it('should not have error', (): void => {
|
|
509
|
+
it('| should not have error', (): void => {
|
|
510
510
|
expect(simplified.error).toBeUndefined();
|
|
511
511
|
});
|
|
512
512
|
|
|
513
|
-
it('should not have errors', (): void => {
|
|
513
|
+
it('| should not have errors', (): void => {
|
|
514
514
|
expect(simplified.errors).toBeUndefined();
|
|
515
515
|
});
|
|
516
516
|
|
|
517
|
-
it('should not have simplified.error.error', (): void => {
|
|
517
|
+
it('| should not have simplified.error.error', (): void => {
|
|
518
518
|
expect((simplified.error as DyFM_Error)?.error).toBeUndefined();
|
|
519
519
|
});
|
|
520
520
|
|
|
521
|
-
it('should not have simplified.error.errors', (): void => {
|
|
521
|
+
it('| should not have simplified.error.errors', (): void => {
|
|
522
522
|
expect((simplified.error as DyFM_Error)?.errors).toBeUndefined();
|
|
523
523
|
});
|
|
524
524
|
});
|
|
525
525
|
|
|
526
|
-
describe('on error_stack_1;', (): void => {
|
|
526
|
+
describe('| on error_stack_1;', (): void => {
|
|
527
527
|
beforeEach((): void => {
|
|
528
528
|
simplified = error_stack_1.getErrorSimplified();
|
|
529
529
|
});
|
|
530
530
|
|
|
531
|
-
it('should be defined', (): void => {
|
|
531
|
+
it('| should be defined', (): void => {
|
|
532
532
|
expect(simplified).toBeDefined();
|
|
533
533
|
});
|
|
534
534
|
|
|
535
|
-
it('should have errorCode', (): void => {
|
|
535
|
+
it('| should have errorCode', (): void => {
|
|
536
536
|
expect(simplified.errorCode).toBeDefined();
|
|
537
537
|
});
|
|
538
538
|
|
|
539
|
-
it('should have message', (): void => {
|
|
539
|
+
it('| should have message', (): void => {
|
|
540
540
|
expect(simplified.message).toBeDefined();
|
|
541
541
|
});
|
|
542
542
|
|
|
543
|
-
it('should have userMessage', (): void => {
|
|
543
|
+
it('| should have userMessage', (): void => {
|
|
544
544
|
expect(simplified.userMessage).toBeDefined();
|
|
545
545
|
});
|
|
546
546
|
|
|
547
|
-
it('should have stack', (): void => {
|
|
547
|
+
it('| should have stack', (): void => {
|
|
548
548
|
expect(simplified.stack).toBeDefined();
|
|
549
549
|
});
|
|
550
550
|
|
|
551
|
-
it('should not have error', (): void => {
|
|
551
|
+
it('| should not have error', (): void => {
|
|
552
552
|
expect(simplified.error).toBeUndefined();
|
|
553
553
|
});
|
|
554
554
|
|
|
555
|
-
it('should not have errors', (): void => {
|
|
555
|
+
it('| should not have errors', (): void => {
|
|
556
556
|
expect(simplified.errors).toBeUndefined();
|
|
557
557
|
});
|
|
558
558
|
|
|
559
|
-
it('should not have simplified.error.error', (): void => {
|
|
559
|
+
it('| should not have simplified.error.error', (): void => {
|
|
560
560
|
expect((simplified.error as DyFM_Error)?.error).toBeUndefined();
|
|
561
561
|
});
|
|
562
562
|
|
|
563
|
-
it('should not have simplified.error.errors', (): void => {
|
|
563
|
+
it('| should not have simplified.error.errors', (): void => {
|
|
564
564
|
expect((simplified.error as DyFM_Error)?.errors).toBeUndefined();
|
|
565
565
|
});
|
|
566
566
|
});
|
|
567
567
|
|
|
568
|
-
describe('on error_stack_2;', (): void => {
|
|
568
|
+
describe('| on error_stack_2;', (): void => {
|
|
569
569
|
beforeEach((): void => {
|
|
570
570
|
simplified = error_stack_2.getErrorSimplified();
|
|
571
571
|
});
|
|
572
572
|
|
|
573
|
-
it('should be defined', (): void => {
|
|
573
|
+
it('| should be defined', (): void => {
|
|
574
574
|
expect(simplified).toBeDefined();
|
|
575
575
|
});
|
|
576
576
|
|
|
577
|
-
it('should have errorCode', (): void => {
|
|
577
|
+
it('| should have errorCode', (): void => {
|
|
578
578
|
expect(simplified.errorCode).toBeDefined();
|
|
579
579
|
});
|
|
580
580
|
|
|
581
|
-
it('should have message', (): void => {
|
|
581
|
+
it('| should have message', (): void => {
|
|
582
582
|
expect(simplified.message).toBeDefined();
|
|
583
583
|
});
|
|
584
584
|
|
|
585
|
-
it('should have userMessage', (): void => {
|
|
585
|
+
it('| should have userMessage', (): void => {
|
|
586
586
|
expect(simplified.userMessage).toBeDefined();
|
|
587
587
|
});
|
|
588
588
|
|
|
589
|
-
it('should have stack', (): void => {
|
|
589
|
+
it('| should have stack', (): void => {
|
|
590
590
|
expect(simplified.stack).toBeDefined();
|
|
591
591
|
});
|
|
592
592
|
|
|
593
|
-
it('should not have error', (): void => {
|
|
593
|
+
it('| should not have error', (): void => {
|
|
594
594
|
expect(simplified.error).toBeUndefined();
|
|
595
595
|
});
|
|
596
596
|
|
|
597
|
-
it('should not have errors', (): void => {
|
|
597
|
+
it('| should not have errors', (): void => {
|
|
598
598
|
expect(simplified.errors).toBeUndefined();
|
|
599
599
|
});
|
|
600
600
|
|
|
601
|
-
it('should not have simplified.error.error', (): void => {
|
|
601
|
+
it('| should not have simplified.error.error', (): void => {
|
|
602
602
|
expect((simplified.error as DyFM_Error)?.error).toBeUndefined();
|
|
603
603
|
});
|
|
604
604
|
|
|
605
|
-
it('should not have simplified.error.errors', (): void => {
|
|
605
|
+
it('| should not have simplified.error.errors', (): void => {
|
|
606
606
|
expect((simplified.error as DyFM_Error)?.errors).toBeUndefined();
|
|
607
607
|
});
|
|
608
608
|
});
|
|
609
609
|
|
|
610
|
-
describe('on self defined error;', (): void => {
|
|
610
|
+
describe('| on self defined error;', (): void => {
|
|
611
611
|
beforeEach((): void => {
|
|
612
612
|
simplified = error_selfDefined.getErrorSimplified();
|
|
613
613
|
});
|
|
614
614
|
|
|
615
|
-
it('should be defined', (): void => {
|
|
615
|
+
it('| should be defined', (): void => {
|
|
616
616
|
expect(simplified).toBeDefined();
|
|
617
617
|
});
|
|
618
618
|
|
|
619
|
-
it('should have errorCode', (): void => {
|
|
619
|
+
it('| should have errorCode', (): void => {
|
|
620
620
|
expect(simplified.errorCode).toBeDefined();
|
|
621
621
|
});
|
|
622
622
|
|
|
623
|
-
it('should have message', (): void => {
|
|
623
|
+
it('| should have message', (): void => {
|
|
624
624
|
expect(simplified.message).toBeDefined();
|
|
625
625
|
});
|
|
626
626
|
|
|
627
|
-
it('should not have userMessage', (): void => {
|
|
627
|
+
it('| should not have userMessage', (): void => {
|
|
628
628
|
expect(simplified.userMessage).toBeUndefined();
|
|
629
629
|
});
|
|
630
630
|
|
|
631
|
-
it('should have stack', (): void => {
|
|
631
|
+
it('| should have stack', (): void => {
|
|
632
632
|
expect(simplified.stack).toBeDefined();
|
|
633
633
|
});
|
|
634
634
|
|
|
635
|
-
it('should not have error', (): void => {
|
|
635
|
+
it('| should not have error', (): void => {
|
|
636
636
|
expect(simplified.error).toBeUndefined();
|
|
637
637
|
});
|
|
638
638
|
|
|
639
|
-
it('should not have errors', (): void => {
|
|
639
|
+
it('| should not have errors', (): void => {
|
|
640
640
|
expect(simplified.errors).toBeUndefined();
|
|
641
641
|
});
|
|
642
642
|
|
|
643
|
-
it('should not have simplified.error.error', (): void => {
|
|
643
|
+
it('| should not have simplified.error.error', (): void => {
|
|
644
644
|
expect((simplified.error as DyFM_Error)?.error).toBeUndefined();
|
|
645
645
|
});
|
|
646
646
|
|
|
647
|
-
it('should not have simplified.error.errors', (): void => {
|
|
647
|
+
it('| should not have simplified.error.errors', (): void => {
|
|
648
648
|
expect((simplified.error as DyFM_Error)?.errors).toBeUndefined();
|
|
649
649
|
});
|
|
650
650
|
});
|
|
651
651
|
});
|
|
652
652
|
|
|
653
|
-
describe('should have get proper flat;', (): void => {
|
|
653
|
+
describe('| should have get proper flat;', (): void => {
|
|
654
654
|
let flat;
|
|
655
655
|
|
|
656
|
-
describe('on error_0;', (): void => {
|
|
656
|
+
describe('| on error_0;', (): void => {
|
|
657
657
|
beforeEach((): void => {
|
|
658
658
|
flat = error_0.getErrorsFlat();
|
|
659
659
|
});
|
|
660
660
|
|
|
661
|
-
it('should be defined', (): void => {
|
|
661
|
+
it('| should be defined', (): void => {
|
|
662
662
|
expect(flat).toBeDefined();
|
|
663
663
|
});
|
|
664
664
|
|
|
665
|
-
it('should have error', (): void => {
|
|
665
|
+
it('| should have error', (): void => {
|
|
666
666
|
expect(flat.error).toBeDefined();
|
|
667
667
|
});
|
|
668
668
|
|
|
669
|
-
describe('errors...;', (): void => {
|
|
670
|
-
it('should have errors', (): void => {
|
|
669
|
+
describe('| errors...;', (): void => {
|
|
670
|
+
it('| should have errors', (): void => {
|
|
671
671
|
expect(flat?.errors).toBeDefined();
|
|
672
672
|
});
|
|
673
673
|
|
|
674
|
-
it('should have 1 errors', (): void => {
|
|
674
|
+
it('| should have 1 errors', (): void => {
|
|
675
675
|
expect(flat?.errors?.length).toBe(1);
|
|
676
676
|
});
|
|
677
677
|
|
|
678
678
|
flat?.errors?.forEach((error: DyFM_Error, index: number): void => {
|
|
679
679
|
describe(`on error[${index}];`, (): void => {
|
|
680
|
-
it('should be', (): void => {
|
|
680
|
+
it('| should be', (): void => {
|
|
681
681
|
expect(error).toBeDefined();
|
|
682
682
|
});
|
|
683
683
|
|
|
@@ -701,31 +701,31 @@ describe('DyFM_Error;', (): void => {
|
|
|
701
701
|
});
|
|
702
702
|
});
|
|
703
703
|
|
|
704
|
-
describe('on error_stack_1;', (): void => {
|
|
704
|
+
describe('| on error_stack_1;', (): void => {
|
|
705
705
|
beforeEach((): void => {
|
|
706
706
|
flat = error_stack_1.getErrorsFlat();
|
|
707
707
|
});
|
|
708
708
|
|
|
709
|
-
it('should be defined', (): void => {
|
|
709
|
+
it('| should be defined', (): void => {
|
|
710
710
|
expect(flat).toBeDefined();
|
|
711
711
|
});
|
|
712
712
|
|
|
713
|
-
it('should have error', (): void => {
|
|
713
|
+
it('| should have error', (): void => {
|
|
714
714
|
expect(flat.error).toBeDefined();
|
|
715
715
|
});
|
|
716
716
|
|
|
717
|
-
describe('errors...;', (): void => {
|
|
718
|
-
it('should have errors', (): void => {
|
|
717
|
+
describe('| errors...;', (): void => {
|
|
718
|
+
it('| should have errors', (): void => {
|
|
719
719
|
expect(flat?.errors).toBeDefined();
|
|
720
720
|
});
|
|
721
721
|
|
|
722
|
-
it('should have 2 errors', (): void => {
|
|
722
|
+
it('| should have 2 errors', (): void => {
|
|
723
723
|
expect(flat?.errors?.length).toBe(2);
|
|
724
724
|
});
|
|
725
725
|
|
|
726
726
|
flat?.errors?.forEach((error: DyFM_Error, index: number): void => {
|
|
727
727
|
describe(`on error[${index}];`, (): void => {
|
|
728
|
-
it('should be', (): void => {
|
|
728
|
+
it('| should be', (): void => {
|
|
729
729
|
expect(error).toBeDefined();
|
|
730
730
|
});
|
|
731
731
|
|
|
@@ -737,11 +737,11 @@ describe('DyFM_Error;', (): void => {
|
|
|
737
737
|
expect(error.errors).toBeUndefined();
|
|
738
738
|
});
|
|
739
739
|
|
|
740
|
-
it('should not have error[${index}].error.error', (): void => {
|
|
740
|
+
it('| should not have error[${index}].error.error', (): void => {
|
|
741
741
|
expect((error.error as DyFM_Error)?.error).toBeUndefined();
|
|
742
742
|
});
|
|
743
743
|
|
|
744
|
-
it('should not have error[${index}].error.errors', (): void => {
|
|
744
|
+
it('| should not have error[${index}].error.errors', (): void => {
|
|
745
745
|
expect((error.error as DyFM_Error)?.errors).toBeUndefined();
|
|
746
746
|
});
|
|
747
747
|
});
|
|
@@ -749,31 +749,31 @@ describe('DyFM_Error;', (): void => {
|
|
|
749
749
|
});
|
|
750
750
|
});
|
|
751
751
|
|
|
752
|
-
describe('on error_stack_2;', (): void => {
|
|
752
|
+
describe('| on error_stack_2;', (): void => {
|
|
753
753
|
beforeEach((): void => {
|
|
754
754
|
flat = error_stack_2.getErrorsFlat();
|
|
755
755
|
});
|
|
756
756
|
|
|
757
|
-
it('should be defined', (): void => {
|
|
757
|
+
it('| should be defined', (): void => {
|
|
758
758
|
expect(flat).toBeDefined();
|
|
759
759
|
});
|
|
760
760
|
|
|
761
|
-
it('should have error', (): void => {
|
|
761
|
+
it('| should have error', (): void => {
|
|
762
762
|
expect(flat.error).toBeDefined();
|
|
763
763
|
});
|
|
764
764
|
|
|
765
|
-
describe('errors...;', (): void => {
|
|
766
|
-
it('should have errors', (): void => {
|
|
765
|
+
describe('| errors...;', (): void => {
|
|
766
|
+
it('| should have errors', (): void => {
|
|
767
767
|
expect(flat?.errors).toBeDefined();
|
|
768
768
|
});
|
|
769
769
|
|
|
770
|
-
it('should have 3 errors', (): void => {
|
|
770
|
+
it('| should have 3 errors', (): void => {
|
|
771
771
|
expect(flat?.errors?.length).toBe(3);
|
|
772
772
|
});
|
|
773
773
|
|
|
774
774
|
flat?.errors?.forEach((error: DyFM_Error, index: number): void => {
|
|
775
775
|
describe(`on error[${index}];`, (): void => {
|
|
776
|
-
it('should be', (): void => {
|
|
776
|
+
it('| should be', (): void => {
|
|
777
777
|
expect(error).toBeDefined();
|
|
778
778
|
});
|
|
779
779
|
|
|
@@ -797,31 +797,31 @@ describe('DyFM_Error;', (): void => {
|
|
|
797
797
|
});
|
|
798
798
|
});
|
|
799
799
|
|
|
800
|
-
describe('on self defined error;', (): void => {
|
|
800
|
+
describe('| on self defined error;', (): void => {
|
|
801
801
|
beforeEach((): void => {
|
|
802
802
|
flat = error_selfDefined.getErrorsFlat();
|
|
803
803
|
});
|
|
804
804
|
|
|
805
|
-
it('should be defined', (): void => {
|
|
805
|
+
it('| should be defined', (): void => {
|
|
806
806
|
expect(flat).toBeDefined();
|
|
807
807
|
});
|
|
808
808
|
|
|
809
|
-
it('should have error', (): void => {
|
|
809
|
+
it('| should have error', (): void => {
|
|
810
810
|
expect(flat.error).toBeDefined();
|
|
811
811
|
});
|
|
812
812
|
|
|
813
|
-
describe('errors...;', (): void => {
|
|
814
|
-
it('should have errors', (): void => {
|
|
813
|
+
describe('| errors...;', (): void => {
|
|
814
|
+
it('| should have errors', (): void => {
|
|
815
815
|
expect(flat?.errors).toBeDefined();
|
|
816
816
|
});
|
|
817
817
|
|
|
818
|
-
it('should have 1 errors', (): void => {
|
|
818
|
+
it('| should have 1 errors', (): void => {
|
|
819
819
|
expect(flat?.errors?.length).toBe(1);
|
|
820
820
|
});
|
|
821
821
|
|
|
822
822
|
flat?.errors?.forEach((error: DyFM_Error, index: number): void => {
|
|
823
823
|
describe(`on error[${index}];`, (): void => {
|
|
824
|
-
it('should be', (): void => {
|
|
824
|
+
it('| should be', (): void => {
|
|
825
825
|
expect(error).toBeDefined();
|
|
826
826
|
});
|
|
827
827
|
|
|
@@ -845,8 +845,8 @@ describe('DyFM_Error;', (): void => {
|
|
|
845
845
|
});
|
|
846
846
|
});
|
|
847
847
|
|
|
848
|
-
describe('stack', (): void => {
|
|
849
|
-
it('error lvl3 should have the stack from the first', (): void => {
|
|
848
|
+
describe('| stack', (): void => {
|
|
849
|
+
it('| error lvl3 should have the stack from the first', (): void => {
|
|
850
850
|
const error_lvl1 = new Error('error_lvl1');
|
|
851
851
|
|
|
852
852
|
const error_lvl2 = new DyFM_Error({
|