@futdevpro/fsm-dynamo 1.7.2 → 1.7.5
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/.eslintrc.json +138 -0
- package/lib/_constants/error-defaults.const.d.ts.map +1 -1
- package/lib/_constants/error-defaults.const.js.map +1 -1
- package/lib/_constants/module-settings/usage-module-settings.const.js +1 -1
- package/lib/_constants/module-settings/usage-module-settings.const.js.map +1 -1
- package/lib/_enums/day-of-week.enum.d.ts +13 -0
- package/lib/_enums/day-of-week.enum.d.ts.map +1 -0
- package/lib/_enums/day-of-week.enum.js +25 -0
- package/lib/_enums/day-of-week.enum.js.map +1 -0
- package/lib/_enums/error-level.enum.d.ts +9 -8
- package/lib/_enums/error-level.enum.d.ts.map +1 -1
- package/lib/_enums/error-level.enum.js +9 -8
- package/lib/_enums/error-level.enum.js.map +1 -1
- package/lib/_enums/index.d.ts +4 -0
- package/lib/_enums/index.d.ts.map +1 -1
- package/lib/_enums/index.js +4 -0
- package/lib/_enums/index.js.map +1 -1
- package/lib/_enums/month.enum.d.ts +15 -0
- package/lib/_enums/month.enum.d.ts.map +1 -0
- package/lib/_enums/month.enum.js +19 -0
- package/lib/_enums/month.enum.js.map +1 -0
- package/lib/_enums/relative-date.enum.d.ts +9 -0
- package/lib/_enums/relative-date.enum.d.ts.map +1 -0
- package/lib/_enums/relative-date.enum.js +13 -0
- package/lib/_enums/relative-date.enum.js.map +1 -0
- package/lib/_models/control-models/daily-usage-data.control-model.d.ts +1 -1
- package/lib/_models/control-models/daily-usage-data.control-model.js.map +1 -1
- package/lib/_models/control-models/data-params.control-model.js.map +1 -1
- package/lib/_models/control-models/data-property-params.control-model.d.ts +4 -2
- package/lib/_models/control-models/data-property-params.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/data-property-params.control-model.js +6 -3
- package/lib/_models/control-models/data-property-params.control-model.js.map +1 -1
- package/lib/_models/control-models/error.control-model.d.ts +28 -24
- package/lib/_models/control-models/error.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/error.control-model.js +39 -16
- package/lib/_models/control-models/error.control-model.js.map +1 -1
- package/lib/_models/control-models/error.control-model.spec.js +3 -2
- package/lib/_models/control-models/error.control-model.spec.js.map +1 -1
- package/lib/_models/control-models/index.d.ts +0 -1
- package/lib/_models/control-models/index.d.ts.map +1 -1
- package/lib/_models/control-models/index.js +0 -1
- package/lib/_models/control-models/index.js.map +1 -1
- package/lib/_models/control-models/poll.control-model.d.ts +2 -2
- package/lib/_models/control-models/poll.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/poll.control-model.js +2 -1
- package/lib/_models/control-models/poll.control-model.js.map +1 -1
- package/lib/_models/control-models/range-value.control-model.d.ts +25 -2
- package/lib/_models/control-models/range-value.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/range-value.control-model.js +83 -1
- package/lib/_models/control-models/range-value.control-model.js.map +1 -1
- package/lib/_models/control-models/usage-action.control-model.js +0 -1
- package/lib/_models/control-models/usage-action.control-model.js.map +1 -1
- package/lib/_models/control-models/usage-data.control-model.js.map +1 -1
- package/lib/_models/data-models/custom-data.data-model.d.ts.map +1 -1
- package/lib/_models/data-models/custom-data.data-model.js.map +1 -1
- package/lib/_models/data-models/metadata.data-model.d.ts.map +1 -1
- package/lib/_models/data-models/metadata.data-model.js.map +1 -1
- package/lib/_models/data-models/usage-session.data-model.d.ts.map +1 -1
- package/lib/_models/data-models/usage-session.data-model.js.map +1 -1
- package/lib/_models/interfaces/paged.interace.d.ts +8 -0
- package/lib/_models/interfaces/paged.interace.d.ts.map +1 -0
- package/lib/_models/interfaces/paged.interace.js +3 -0
- package/lib/_models/interfaces/paged.interace.js.map +1 -0
- package/lib/_utils/array.util.d.ts +5 -0
- package/lib/_utils/array.util.d.ts.map +1 -1
- package/lib/_utils/array.util.js +26 -0
- package/lib/_utils/array.util.js.map +1 -1
- package/lib/_utils/array.util.spec.js.map +1 -1
- package/lib/_utils/box-bounds.util.d.ts +18 -0
- package/lib/_utils/box-bounds.util.d.ts.map +1 -0
- package/lib/_utils/box-bounds.util.js +57 -0
- package/lib/_utils/box-bounds.util.js.map +1 -0
- package/lib/_utils/index.d.ts +4 -1
- package/lib/_utils/index.d.ts.map +1 -1
- package/lib/_utils/index.js +4 -1
- package/lib/_utils/index.js.map +1 -1
- package/lib/_utils/location.util.d.ts.map +1 -1
- package/lib/_utils/location.util.js +4 -2
- package/lib/_utils/location.util.js.map +1 -1
- package/lib/_utils/log.util.d.ts.map +1 -1
- package/lib/_utils/log.util.js +4 -1
- package/lib/_utils/log.util.js.map +1 -1
- package/lib/_utils/math.util.d.ts +10 -0
- package/lib/_utils/math.util.d.ts.map +1 -0
- package/lib/_utils/math.util.js +32 -0
- package/lib/_utils/math.util.js.map +1 -0
- package/lib/_utils/metadata.util.d.ts.map +1 -1
- package/lib/_utils/metadata.util.js.map +1 -1
- package/lib/_utils/random.util.d.ts.map +1 -1
- package/lib/_utils/random.util.js +8 -4
- package/lib/_utils/random.util.js.map +1 -1
- package/lib/_utils/regex/password-regex.util.d.ts +3 -0
- package/lib/_utils/regex/password-regex.util.d.ts.map +1 -0
- package/lib/_utils/regex/password-regex.util.js +49 -0
- package/lib/_utils/regex/password-regex.util.js.map +1 -0
- package/lib/_utils/regex/username-regex.util.d.ts +2 -0
- package/lib/_utils/regex/username-regex.util.d.ts.map +1 -0
- package/lib/_utils/regex/username-regex.util.js +32 -0
- package/lib/_utils/regex/username-regex.util.js.map +1 -0
- package/lib/_utils/regex.util.d.ts.map +1 -1
- package/lib/_utils/regex.util.js +1 -1
- package/lib/_utils/regex.util.js.map +1 -1
- package/lib/_utils/regions.util.d.ts.map +1 -1
- package/lib/_utils/regions.util.js +5 -5
- package/lib/_utils/regions.util.js.map +1 -1
- package/lib/_utils/round-list.util.d.ts.map +1 -1
- package/lib/_utils/round-list.util.js.map +1 -1
- package/lib/_utils/shared.static-service.d.ts.map +1 -1
- package/lib/_utils/shared.static-service.js +1 -1
- package/lib/_utils/shared.static-service.js.map +1 -1
- package/lib/_utils/time.util.d.ts +82 -0
- package/lib/_utils/time.util.d.ts.map +1 -1
- package/lib/_utils/time.util.js +135 -0
- package/lib/_utils/time.util.js.map +1 -1
- package/lib/_utils/trigonometry.util.d.ts.map +1 -1
- package/lib/_utils/trigonometry.util.js +3 -1
- package/lib/_utils/trigonometry.util.js.map +1 -1
- package/lib/_utils/type-cloning-facility.util.d.ts +27 -0
- package/lib/_utils/type-cloning-facility.util.d.ts.map +1 -0
- package/lib/_utils/type-cloning-facility.util.js +77 -0
- package/lib/_utils/type-cloning-facility.util.js.map +1 -0
- package/lib/_utils/utilities.util.d.ts +3 -2
- package/lib/_utils/utilities.util.d.ts.map +1 -1
- package/lib/_utils/utilities.util.js +8 -4
- package/lib/_utils/utilities.util.js.map +1 -1
- package/lib/_utils/{vector.util.d.ts → vector2.util.d.ts} +25 -5
- package/lib/_utils/vector2.util.d.ts.map +1 -0
- package/lib/_utils/{vector.util.js → vector2.util.js} +67 -17
- package/lib/_utils/vector2.util.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/nodemon.json +1 -1
- package/package.json +5 -1
- package/src/_constants/error-defaults.const.ts +1 -1
- package/src/_constants/module-settings/usage-module-settings.const.ts +1 -1
- package/src/_enums/day-of-week.enum.ts +27 -0
- package/src/_enums/error-level.enum.ts +11 -9
- package/src/_enums/index.ts +4 -0
- package/src/_enums/month.enum.ts +16 -0
- package/src/_enums/relative-date.enum.ts +13 -0
- package/src/_models/control-models/daily-usage-data.control-model.ts +1 -1
- package/src/_models/control-models/data-property-params.control-model.ts +12 -4
- package/src/_models/control-models/error.control-model.spec.ts +189 -178
- package/src/_models/control-models/error.control-model.ts +118 -57
- package/src/_models/control-models/index.ts +0 -1
- package/src/_models/control-models/poll.control-model.ts +15 -9
- package/src/_models/control-models/range-value.control-model.ts +119 -4
- package/src/_models/control-models/usage-action.control-model.ts +1 -1
- package/src/_models/control-models/usage-data.control-model.ts +1 -1
- package/src/_models/data-models/custom-data.data-model.ts +1 -1
- package/src/_models/data-models/metadata.data-model.ts +5 -0
- package/src/_models/data-models/usage-session.data-model.ts +1 -1
- package/src/_models/interfaces/paged.interace.ts +11 -0
- package/src/_utils/array.util.spec.ts +8 -7
- package/src/_utils/array.util.ts +48 -3
- package/src/_utils/box-bounds.util.ts +71 -0
- package/src/_utils/index.ts +4 -1
- package/src/_utils/location.util.ts +11 -3
- package/src/_utils/log.util.ts +51 -23
- package/src/_utils/math.util.ts +53 -0
- package/src/_utils/metadata.util.ts +1 -0
- package/src/_utils/random.util.ts +18 -7
- package/src/_utils/regex/password-regex.util.ts +53 -0
- package/src/_utils/regex/username-regex.util.ts +33 -0
- package/src/_utils/regex.util.ts +1 -1
- package/src/_utils/regions.util.ts +19 -7
- package/src/_utils/round-list.util.ts +1 -0
- package/src/_utils/shared.static-service.ts +30 -5
- package/src/_utils/time.util.ts +163 -4
- package/src/_utils/trigonometry.util.ts +8 -1
- package/src/_utils/type-cloning-facility.util.ts +121 -0
- package/src/_utils/utilities.util.ts +33 -8
- package/src/_utils/{vector.util.ts → vector2.util.ts} +85 -18
- package/lib/_utils/vector.util.d.ts.map +0 -1
- package/lib/_utils/vector.util.js.map +0 -1
|
@@ -4,7 +4,7 @@ import { dynamo_error_default } from '../../_constants/error-defaults.const';
|
|
|
4
4
|
import { Dynamo_Log } from '../../_utils/log.util';
|
|
5
5
|
import { Dynamo_Error } from './error.control-model';
|
|
6
6
|
|
|
7
|
-
describe('Dynamo_Error;', () => {
|
|
7
|
+
describe('Dynamo_Error;', (): void => {
|
|
8
8
|
let error_base: Error;
|
|
9
9
|
let error_0: Dynamo_Error;
|
|
10
10
|
let error_stack_1: Dynamo_Error;
|
|
@@ -16,7 +16,8 @@ describe('Dynamo_Error;', () => {
|
|
|
16
16
|
const message_base: string = '-TEST ERROR: something failed!-';
|
|
17
17
|
const message_1: string = 'TEST ERROR MSG (1)';
|
|
18
18
|
const message_2: string = 'TEST ERROR MSG (2)';
|
|
19
|
-
const message_selfDefined: string = dynamo_error_default.message +
|
|
19
|
+
const message_selfDefined: string = dynamo_error_default.message +
|
|
20
|
+
'; error.control-model.spec.js:78:29)';
|
|
20
21
|
|
|
21
22
|
const errorCode_0: string = 'ASD-ASD-001';
|
|
22
23
|
const errorCode_1: string = 'ASD-ASD-002';
|
|
@@ -28,12 +29,12 @@ describe('Dynamo_Error;', () => {
|
|
|
28
29
|
const userMessageResult_0: string = userMessage_0 + `\nErrorCode: ${errorCode_0}`;
|
|
29
30
|
const userMessageResult_2: string = userMessage_2 + `\nErrorCode: ${errorCode_2}`;
|
|
30
31
|
|
|
31
|
-
const issuer: string = 'Dynamo_Error TEST User'
|
|
32
|
+
const issuer: string = 'Dynamo_Error TEST User';
|
|
32
33
|
const issuerSystem: string = 'Dynamo_FSM TEST';
|
|
33
34
|
const issuerService_0: string = 'Service-0';
|
|
34
35
|
const issuerService_1: string = 'Service-1';
|
|
35
36
|
|
|
36
|
-
const additionalContent_1
|
|
37
|
+
const additionalContent_1 = {
|
|
37
38
|
test: 'test',
|
|
38
39
|
test2: 'test2',
|
|
39
40
|
};
|
|
@@ -41,7 +42,7 @@ describe('Dynamo_Error;', () => {
|
|
|
41
42
|
const log: boolean = false;
|
|
42
43
|
/* const log: boolean = true; */
|
|
43
44
|
|
|
44
|
-
beforeEach(async () => {
|
|
45
|
+
beforeEach(async (): Promise<void> => {
|
|
45
46
|
error_base = new Error(message_base);
|
|
46
47
|
|
|
47
48
|
error_0 = new Dynamo_Error({
|
|
@@ -66,9 +67,11 @@ describe('Dynamo_Error;', () => {
|
|
|
66
67
|
error_stack_withoutSubErrors_1 = {
|
|
67
68
|
...error_stack_1,
|
|
68
69
|
} as Dynamo_Error;
|
|
69
|
-
error_stack_withoutSubErrors_1.errors.forEach((error: Dynamo_Error) => {
|
|
70
|
+
error_stack_withoutSubErrors_1.errors.forEach((error: Dynamo_Error): any => {
|
|
70
71
|
const subError = { ...error };
|
|
72
|
+
|
|
71
73
|
delete (subError as Dynamo_Error).errors;
|
|
74
|
+
|
|
72
75
|
return subError;
|
|
73
76
|
});
|
|
74
77
|
|
|
@@ -83,465 +86,473 @@ describe('Dynamo_Error;', () => {
|
|
|
83
86
|
error_stack_withoutSubErrors_2 = {
|
|
84
87
|
...error_stack_2,
|
|
85
88
|
} as Dynamo_Error;
|
|
86
|
-
error_stack_withoutSubErrors_2.errors.map((error: Dynamo_Error) => {
|
|
89
|
+
error_stack_withoutSubErrors_2.errors.map((error: Dynamo_Error): any => {
|
|
87
90
|
const subError = { ...error };
|
|
91
|
+
|
|
88
92
|
delete (subError as Dynamo_Error).errors;
|
|
93
|
+
|
|
89
94
|
return subError;
|
|
90
95
|
});
|
|
91
96
|
|
|
92
97
|
error_selfDefined = new Dynamo_Error();
|
|
93
98
|
});
|
|
94
99
|
|
|
95
|
-
if (log) afterAll(async () => {
|
|
100
|
+
if (log) afterAll(async (): Promise<void> => {
|
|
96
101
|
Dynamo_Log.testLog('error_stack_2:\n', error_stack_2);
|
|
97
102
|
Dynamo_Log.testLog('error_stack_2.getFlat:\n', error_stack_2.getErrorsFlat());
|
|
98
103
|
Dynamo_Log.testLog('error_stack_2.getSimplified:\n', error_stack_2.getErrorSimplified());
|
|
99
104
|
Dynamo_Log.testLog('error_stack_withoutSubErrors_2:\n', error_stack_withoutSubErrors_2);
|
|
100
105
|
Dynamo_Log.testLog('error_selfDefined:\n', error_selfDefined);
|
|
101
106
|
Dynamo_Log.testLog('error_selfDefined.getFlat:\n', error_selfDefined.getErrorsFlat());
|
|
102
|
-
Dynamo_Log.testLog(
|
|
107
|
+
Dynamo_Log.testLog(
|
|
108
|
+
'error_selfDefined.getSimplified:\n', error_selfDefined.getErrorSimplified()
|
|
109
|
+
);
|
|
103
110
|
});
|
|
104
111
|
|
|
105
|
-
describe('should be defined;', () => {
|
|
106
|
-
it('error object', () => {
|
|
112
|
+
describe('should be defined;', (): void => {
|
|
113
|
+
it('error object', (): void => {
|
|
107
114
|
expect(error_0).toBeDefined();
|
|
108
115
|
});
|
|
109
116
|
|
|
110
|
-
it('error stack object', () => {
|
|
117
|
+
it('error stack object', (): void => {
|
|
111
118
|
expect(error_stack_1).toBeDefined();
|
|
112
119
|
});
|
|
113
120
|
|
|
114
|
-
it('greater error stack object', () => {
|
|
121
|
+
it('greater error stack object', (): void => {
|
|
115
122
|
expect(error_stack_2).toBeDefined();
|
|
116
123
|
});
|
|
117
124
|
|
|
118
|
-
it('self defined error object', () => {
|
|
125
|
+
it('self defined error object', (): void => {
|
|
119
126
|
expect(error_selfDefined).toBeDefined();
|
|
120
127
|
});
|
|
121
128
|
});
|
|
122
129
|
|
|
123
|
-
describe('should be instance of Dynamo_Error;', () => {
|
|
124
|
-
it('error as Dynamo_Error object', () => {
|
|
130
|
+
describe('should be instance of Dynamo_Error;', (): void => {
|
|
131
|
+
it('error as Dynamo_Error object', (): void => {
|
|
125
132
|
expect(error_0).toBeInstanceOf(Dynamo_Error);
|
|
126
133
|
});
|
|
127
134
|
|
|
128
|
-
it('error stack as Dynamo_Error object', () => {
|
|
135
|
+
it('error stack as Dynamo_Error object', (): void => {
|
|
129
136
|
expect(error_stack_1).toBeInstanceOf(Dynamo_Error);
|
|
130
137
|
});
|
|
131
138
|
|
|
132
|
-
it('greater error stack as Dynamo_Error object', () => {
|
|
139
|
+
it('greater error stack as Dynamo_Error object', (): void => {
|
|
133
140
|
expect(error_stack_2).toBeInstanceOf(Dynamo_Error);
|
|
134
141
|
});
|
|
135
142
|
|
|
136
|
-
it('self defined error as Dynamo_Error object', () => {
|
|
143
|
+
it('self defined error as Dynamo_Error object', (): void => {
|
|
137
144
|
expect(error_selfDefined).toBeInstanceOf(Dynamo_Error);
|
|
138
145
|
});
|
|
139
146
|
});
|
|
140
147
|
|
|
141
|
-
describe('should have the proper _errorCode;', () => {
|
|
142
|
-
it('on error_0', () => {
|
|
148
|
+
describe('should have the proper _errorCode;', (): void => {
|
|
149
|
+
it('on error_0', (): void => {
|
|
143
150
|
expect(error_0._errorCode).toBe(errorCode_0);
|
|
144
151
|
});
|
|
145
152
|
|
|
146
|
-
it('on error_stack_1', () => {
|
|
153
|
+
it('on error_stack_1', (): void => {
|
|
147
154
|
expect(error_stack_1._errorCode).toBe(errorCode_0);
|
|
148
155
|
});
|
|
149
156
|
|
|
150
|
-
it('on error_stack_2', () => {
|
|
157
|
+
it('on error_stack_2', (): void => {
|
|
151
158
|
expect(error_stack_2._errorCode).toBe(errorCode_0);
|
|
152
159
|
});
|
|
153
160
|
|
|
154
|
-
it('on self defined error', () => {
|
|
161
|
+
it('on self defined error', (): void => {
|
|
155
162
|
expect(error_selfDefined._errorCode).toBe(dynamo_error_default.errorCode);
|
|
156
163
|
});
|
|
157
164
|
});
|
|
158
165
|
|
|
159
|
-
describe('should have the proper _errorCodes;', () => {
|
|
160
|
-
it('on error_0', () => {
|
|
166
|
+
describe('should have the proper _errorCodes;', (): void => {
|
|
167
|
+
it('on error_0', (): void => {
|
|
161
168
|
expect(error_0._errorCodes).toEqual([ errorCode_0 ]);
|
|
162
169
|
});
|
|
163
170
|
|
|
164
|
-
it('on error_stack_1', () => {
|
|
171
|
+
it('on error_stack_1', (): void => {
|
|
165
172
|
expect(error_stack_1._errorCodes).toEqual([ errorCode_0, errorCode_1 ]);
|
|
166
173
|
});
|
|
167
174
|
|
|
168
|
-
it('on error_stack_2', () => {
|
|
175
|
+
it('on error_stack_2', (): void => {
|
|
169
176
|
expect(error_stack_2._errorCodes).toEqual([ errorCode_0, errorCode_1, errorCode_2 ]);
|
|
170
177
|
});
|
|
171
178
|
|
|
172
|
-
it('on self defined error', () => {
|
|
179
|
+
it('on self defined error', (): void => {
|
|
173
180
|
expect(error_selfDefined._errorCodes).toEqual([ dynamo_error_default.errorCode ]);
|
|
174
181
|
});
|
|
175
182
|
});
|
|
176
183
|
|
|
177
|
-
describe('should have the proper _message;', () => {
|
|
178
|
-
it('on error_0', () => {
|
|
184
|
+
describe('should have the proper _message;', (): void => {
|
|
185
|
+
it('on error_0', (): void => {
|
|
179
186
|
expect(error_0._message).toBe(message_base);
|
|
180
187
|
});
|
|
181
188
|
|
|
182
|
-
it('on error_stack_1', () => {
|
|
189
|
+
it('on error_stack_1', (): void => {
|
|
183
190
|
expect(error_stack_1._message).toBe(message_base);
|
|
184
191
|
});
|
|
185
192
|
|
|
186
|
-
it('on error_stack_2', () => {
|
|
193
|
+
it('on error_stack_2', (): void => {
|
|
187
194
|
expect(error_stack_2._message).toBe(message_base);
|
|
188
195
|
});
|
|
189
196
|
|
|
190
|
-
it('on self defined error', () => {
|
|
197
|
+
it('on self defined error', (): void => {
|
|
191
198
|
expect(error_selfDefined._message).toBe(message_selfDefined);
|
|
192
199
|
});
|
|
193
200
|
});
|
|
194
201
|
|
|
195
|
-
describe('should have the proper _messages;', () => {
|
|
196
|
-
it('on error_0', () => {
|
|
202
|
+
describe('should have the proper _messages;', (): void => {
|
|
203
|
+
it('on error_0', (): void => {
|
|
197
204
|
expect(error_0._messages).toEqual([ message_base ]);
|
|
198
205
|
});
|
|
199
206
|
|
|
200
|
-
it('on error_stack_1', () => {
|
|
207
|
+
it('on error_stack_1', (): void => {
|
|
201
208
|
expect(error_stack_1._messages).toEqual([ message_base, message_1 ]);
|
|
202
209
|
});
|
|
203
210
|
|
|
204
|
-
it('on error_stack_2', () => {
|
|
211
|
+
it('on error_stack_2', (): void => {
|
|
205
212
|
expect(error_stack_2._messages).toEqual([ message_base, message_1, message_2 ]);
|
|
206
213
|
});
|
|
207
214
|
|
|
208
|
-
it('on self defined error', () => {
|
|
215
|
+
it('on self defined error', (): void => {
|
|
209
216
|
expect(error_selfDefined._messages).toEqual([ message_selfDefined ]);
|
|
210
217
|
});
|
|
211
218
|
});
|
|
212
219
|
|
|
213
|
-
describe('should have the proper __userMessage;', () => {
|
|
214
|
-
it('on error_0', () => {
|
|
220
|
+
describe('should have the proper __userMessage;', (): void => {
|
|
221
|
+
it('on error_0', (): void => {
|
|
215
222
|
expect(error_0.__userMessage).toBe(userMessageResult_0);
|
|
216
223
|
});
|
|
217
224
|
|
|
218
|
-
it('on error_stack_1', () => {
|
|
225
|
+
it('on error_stack_1', (): void => {
|
|
219
226
|
expect(error_stack_1.__userMessage).toBe(userMessageResult_0);
|
|
220
227
|
});
|
|
221
228
|
|
|
222
|
-
it('on error_stack_2', () => {
|
|
229
|
+
it('on error_stack_2', (): void => {
|
|
223
230
|
expect(error_stack_2.__userMessage).toBe(userMessageResult_0);
|
|
224
231
|
});
|
|
225
232
|
|
|
226
|
-
it('on self defined error', () => {
|
|
233
|
+
it('on self defined error', (): void => {
|
|
227
234
|
expect(error_selfDefined.__userMessage).toBeUndefined();
|
|
228
235
|
});
|
|
229
236
|
});
|
|
230
237
|
|
|
231
|
-
describe('should have the proper __userMessages;', () => {
|
|
232
|
-
it('on error_0', () => {
|
|
238
|
+
describe('should have the proper __userMessages;', (): void => {
|
|
239
|
+
it('on error_0', (): void => {
|
|
233
240
|
expect(error_0.__userMessages).toEqual([ userMessageResult_0 ]);
|
|
234
241
|
});
|
|
235
242
|
|
|
236
|
-
it('on error_stack_1', () => {
|
|
237
|
-
expect(error_stack_1.__userMessages).toEqual(
|
|
243
|
+
it('on error_stack_1', (): void => {
|
|
244
|
+
expect(error_stack_1.__userMessages).toEqual(
|
|
245
|
+
[ userMessageResult_0, dynamo_error_default.userMessage ]
|
|
246
|
+
);
|
|
238
247
|
});
|
|
239
248
|
|
|
240
|
-
it('on error_stack_2', () => {
|
|
241
|
-
expect(error_stack_2.__userMessages).toEqual(
|
|
249
|
+
it('on error_stack_2', (): void => {
|
|
250
|
+
expect(error_stack_2.__userMessages).toEqual(
|
|
251
|
+
[ userMessageResult_0, dynamo_error_default.userMessage, userMessageResult_2 ]
|
|
252
|
+
);
|
|
242
253
|
});
|
|
243
254
|
|
|
244
|
-
it('on self defined error', () => {
|
|
255
|
+
it('on self defined error', (): void => {
|
|
245
256
|
expect(error_selfDefined.__userMessages).toEqual([ dynamo_error_default.userMessage ]);
|
|
246
257
|
});
|
|
247
258
|
});
|
|
248
259
|
|
|
249
|
-
describe('should have proper error;', () => {
|
|
250
|
-
it('on error_0', () => {
|
|
260
|
+
describe('should have proper error;', (): void => {
|
|
261
|
+
it('on error_0', (): void => {
|
|
251
262
|
expect(error_0.error).toBe(error_base);
|
|
252
263
|
});
|
|
253
264
|
|
|
254
|
-
it('on error_stack_1', () => {
|
|
265
|
+
it('on error_stack_1', (): void => {
|
|
255
266
|
expect(error_stack_1.error).toBe(error_base);
|
|
256
267
|
});
|
|
257
268
|
|
|
258
|
-
it('on error_stack_2', () => {
|
|
269
|
+
it('on error_stack_2', (): void => {
|
|
259
270
|
expect(error_stack_2.error).toBe(error_base);
|
|
260
271
|
});
|
|
261
272
|
|
|
262
|
-
it('on self defined error', () => {
|
|
273
|
+
it('on self defined error', (): void => {
|
|
263
274
|
expect(error_selfDefined.error).toBeDefined();
|
|
264
275
|
});
|
|
265
276
|
});
|
|
266
277
|
|
|
267
|
-
describe('should have the proper errors;', () => {
|
|
268
|
-
it('on error_0', () => {
|
|
278
|
+
describe('should have the proper errors;', (): void => {
|
|
279
|
+
it('on error_0', (): void => {
|
|
269
280
|
expect(error_0.errors).toEqual([ error_base ]);
|
|
270
281
|
});
|
|
271
282
|
|
|
272
|
-
it('on error_stack_1', () => {
|
|
283
|
+
it('on error_stack_1', (): void => {
|
|
273
284
|
expect(error_stack_1.errors).toEqual([ error_base, error_0 ]);
|
|
274
285
|
});
|
|
275
286
|
|
|
276
|
-
it('on error_stack_2', () => {
|
|
287
|
+
it('on error_stack_2', (): void => {
|
|
277
288
|
expect(error_stack_2.errors).toEqual([ error_base, error_0, error_stack_1 ]);
|
|
278
289
|
});
|
|
279
290
|
|
|
280
|
-
it('on self defined error', () => {
|
|
291
|
+
it('on self defined error', (): void => {
|
|
281
292
|
expect(error_selfDefined?.errors?.length).toBe(1);
|
|
282
293
|
});
|
|
283
294
|
});
|
|
284
295
|
|
|
285
|
-
describe('should have proper handled;', () => {
|
|
286
|
-
it('on error_0', () => {
|
|
296
|
+
describe('should have proper handled;', (): void => {
|
|
297
|
+
it('on error_0', (): void => {
|
|
287
298
|
expect(error_0.___handled).toBe(false);
|
|
288
299
|
});
|
|
289
300
|
|
|
290
|
-
it('on error_stack_1', () => {
|
|
301
|
+
it('on error_stack_1', (): void => {
|
|
291
302
|
expect(error_stack_1.___handled).toBe(true);
|
|
292
303
|
});
|
|
293
304
|
|
|
294
|
-
it('on error_stack_2', () => {
|
|
305
|
+
it('on error_stack_2', (): void => {
|
|
295
306
|
expect(error_stack_2.___handled).toBe(true);
|
|
296
307
|
});
|
|
297
308
|
|
|
298
|
-
it('on self defined error', () => {
|
|
309
|
+
it('on self defined error', (): void => {
|
|
299
310
|
expect(error_selfDefined.___handled).toBe(false);
|
|
300
311
|
});
|
|
301
312
|
});
|
|
302
313
|
|
|
303
|
-
describe('should have status: undefined;', () => {
|
|
304
|
-
it('on error_0', () => {
|
|
314
|
+
describe('should have status: undefined;', (): void => {
|
|
315
|
+
it('on error_0', (): void => {
|
|
305
316
|
expect(error_0.___status).toBe(undefined);
|
|
306
317
|
});
|
|
307
318
|
|
|
308
|
-
it('on error_stack_1', () => {
|
|
319
|
+
it('on error_stack_1', (): void => {
|
|
309
320
|
expect(error_stack_1.___status).toBe(undefined);
|
|
310
321
|
});
|
|
311
322
|
|
|
312
|
-
it('on error_stack_2', () => {
|
|
323
|
+
it('on error_stack_2', (): void => {
|
|
313
324
|
expect(error_stack_2.___status).toBe(undefined);
|
|
314
325
|
});
|
|
315
326
|
|
|
316
|
-
it('on self defined error', () => {
|
|
327
|
+
it('on self defined error', (): void => {
|
|
317
328
|
expect(error_selfDefined.___status).toBe(undefined);
|
|
318
329
|
});
|
|
319
330
|
});
|
|
320
331
|
|
|
321
|
-
describe('should have the proper issuer;', () => {
|
|
322
|
-
it('on error_0', () => {
|
|
332
|
+
describe('should have the proper issuer;', (): void => {
|
|
333
|
+
it('on error_0', (): void => {
|
|
323
334
|
expect(error_0.___issuer).toBe(issuer);
|
|
324
335
|
});
|
|
325
336
|
|
|
326
|
-
it('on error_stack_1', () => {
|
|
337
|
+
it('on error_stack_1', (): void => {
|
|
327
338
|
expect(error_stack_1.___issuer).toBe(issuer);
|
|
328
339
|
});
|
|
329
340
|
|
|
330
|
-
it('on error_stack_2', () => {
|
|
341
|
+
it('on error_stack_2', (): void => {
|
|
331
342
|
expect(error_stack_2.___issuer).toBe(issuer);
|
|
332
343
|
});
|
|
333
344
|
|
|
334
|
-
it('on self defined error', () => {
|
|
345
|
+
it('on self defined error', (): void => {
|
|
335
346
|
expect(error_selfDefined.___issuer).toBe(dynamo_error_default.issuer);
|
|
336
347
|
});
|
|
337
348
|
});
|
|
338
349
|
|
|
339
|
-
describe('should have get proper additionalContent;', () => {
|
|
340
|
-
it('on error_0', () => {
|
|
350
|
+
describe('should have get proper additionalContent;', (): void => {
|
|
351
|
+
it('on error_0', (): void => {
|
|
341
352
|
expect(error_0.additionalContent).toBeUndefined();
|
|
342
353
|
});
|
|
343
354
|
|
|
344
|
-
it('on error_stack_1', () => {
|
|
355
|
+
it('on error_stack_1', (): void => {
|
|
345
356
|
expect(error_stack_1.additionalContent).toBe(additionalContent_1);
|
|
346
357
|
});
|
|
347
358
|
|
|
348
|
-
it('on error_stack_2', () => {
|
|
349
|
-
expect(error_stack_2.additionalContent).
|
|
359
|
+
it('on error_stack_2', (): void => {
|
|
360
|
+
expect(error_stack_2.additionalContent).toBe(additionalContent_1);
|
|
350
361
|
});
|
|
351
362
|
|
|
352
|
-
it('on self defined error', () => {
|
|
363
|
+
it('on self defined error', (): void => {
|
|
353
364
|
expect(error_selfDefined.additionalContent).toBeUndefined();
|
|
354
365
|
});
|
|
355
366
|
});
|
|
356
367
|
|
|
357
|
-
describe('should have the proper issuerSystem;', () => {
|
|
358
|
-
it('on error_0', () => {
|
|
368
|
+
describe('should have the proper issuerSystem;', (): void => {
|
|
369
|
+
it('on error_0', (): void => {
|
|
359
370
|
expect(error_0.___issuerSystem).toBe(issuerSystem);
|
|
360
371
|
});
|
|
361
372
|
|
|
362
|
-
it('on error_stack_1', () => {
|
|
373
|
+
it('on error_stack_1', (): void => {
|
|
363
374
|
expect(error_stack_1.___issuerSystem).toBe(issuerSystem);
|
|
364
375
|
});
|
|
365
376
|
|
|
366
|
-
it('on error_stack_2', () => {
|
|
377
|
+
it('on error_stack_2', (): void => {
|
|
367
378
|
expect(error_stack_2.___issuerSystem).toBe(issuerSystem);
|
|
368
379
|
});
|
|
369
380
|
|
|
370
|
-
it('on self defined error', () => {
|
|
381
|
+
it('on self defined error', (): void => {
|
|
371
382
|
expect(error_selfDefined.___issuerSystem).toBe(dynamo_error_default.issuerSystem);
|
|
372
383
|
});
|
|
373
384
|
});
|
|
374
385
|
|
|
375
|
-
describe('should have the proper issuerService;', () => {
|
|
376
|
-
it('on error_0', () => {
|
|
386
|
+
describe('should have the proper issuerService;', (): void => {
|
|
387
|
+
it('on error_0', (): void => {
|
|
377
388
|
expect(error_0.___issuerService).toBe(issuerService_0);
|
|
378
389
|
});
|
|
379
390
|
|
|
380
|
-
it('on error_stack_1', () => {
|
|
391
|
+
it('on error_stack_1', (): void => {
|
|
381
392
|
expect(error_stack_1.___issuerService).toBe(issuerService_1);
|
|
382
393
|
});
|
|
383
394
|
|
|
384
|
-
it('on error_stack_2', () => {
|
|
395
|
+
it('on error_stack_2', (): void => {
|
|
385
396
|
expect(error_stack_2.___issuerService).toBe(issuerService_1);
|
|
386
397
|
});
|
|
387
398
|
|
|
388
|
-
it('on self defined error', () => {
|
|
399
|
+
it('on self defined error', (): void => {
|
|
389
400
|
expect(error_selfDefined.___issuerService).toBe(dynamo_error_default.issuerService);
|
|
390
401
|
});
|
|
391
402
|
});
|
|
392
403
|
|
|
393
|
-
describe('should have get proper simplified;', () => {
|
|
404
|
+
describe('should have get proper simplified;', (): void => {
|
|
394
405
|
let simplified;
|
|
395
406
|
|
|
396
|
-
describe('on error_0;', () => {
|
|
397
|
-
beforeEach(() => {
|
|
407
|
+
describe('on error_0;', (): void => {
|
|
408
|
+
beforeEach((): void => {
|
|
398
409
|
simplified = error_0.getErrorSimplified();
|
|
399
410
|
});
|
|
400
411
|
|
|
401
|
-
it('should be defined', () => {
|
|
412
|
+
it('should be defined', (): void => {
|
|
402
413
|
expect(simplified).toBeDefined();
|
|
403
414
|
});
|
|
404
415
|
|
|
405
|
-
it('should have error', () => {
|
|
416
|
+
it('should have error', (): void => {
|
|
406
417
|
expect(simplified.error).toBeDefined();
|
|
407
418
|
});
|
|
408
419
|
|
|
409
|
-
it('should not have errors', () => {
|
|
420
|
+
it('should not have errors', (): void => {
|
|
410
421
|
expect(simplified.errors).toBeUndefined();
|
|
411
422
|
});
|
|
412
423
|
|
|
413
|
-
it('should not have simplified.error.error', () => {
|
|
424
|
+
it('should not have simplified.error.error', (): void => {
|
|
414
425
|
expect((simplified.error as Dynamo_Error)?.error).toBeUndefined();
|
|
415
426
|
});
|
|
416
427
|
|
|
417
|
-
it('should not have simplified.error.errors', () => {
|
|
428
|
+
it('should not have simplified.error.errors', (): void => {
|
|
418
429
|
expect((simplified.error as Dynamo_Error)?.errors).toBeUndefined();
|
|
419
430
|
});
|
|
420
431
|
});
|
|
421
432
|
|
|
422
|
-
describe('on error_stack_1;', () => {
|
|
423
|
-
beforeEach(() => {
|
|
433
|
+
describe('on error_stack_1;', (): void => {
|
|
434
|
+
beforeEach((): void => {
|
|
424
435
|
simplified = error_stack_1.getErrorSimplified();
|
|
425
436
|
});
|
|
426
437
|
|
|
427
|
-
it('should be defined', () => {
|
|
438
|
+
it('should be defined', (): void => {
|
|
428
439
|
expect(simplified).toBeDefined();
|
|
429
440
|
});
|
|
430
441
|
|
|
431
|
-
it('should have error', () => {
|
|
442
|
+
it('should have error', (): void => {
|
|
432
443
|
expect(simplified.error).toBeDefined();
|
|
433
444
|
});
|
|
434
445
|
|
|
435
|
-
it('should not have errors', () => {
|
|
446
|
+
it('should not have errors', (): void => {
|
|
436
447
|
expect(simplified.errors).toBeUndefined();
|
|
437
448
|
});
|
|
438
449
|
|
|
439
|
-
it('should not have simplified.error.error', () => {
|
|
450
|
+
it('should not have simplified.error.error', (): void => {
|
|
440
451
|
expect((simplified.error as Dynamo_Error)?.error).toBeUndefined();
|
|
441
452
|
});
|
|
442
453
|
|
|
443
|
-
it('should not have simplified.error.errors', () => {
|
|
454
|
+
it('should not have simplified.error.errors', (): void => {
|
|
444
455
|
expect((simplified.error as Dynamo_Error)?.errors).toBeUndefined();
|
|
445
456
|
});
|
|
446
457
|
});
|
|
447
458
|
|
|
448
|
-
describe('on error_stack_2;', () => {
|
|
449
|
-
beforeEach(() => {
|
|
459
|
+
describe('on error_stack_2;', (): void => {
|
|
460
|
+
beforeEach((): void => {
|
|
450
461
|
simplified = error_stack_2.getErrorSimplified();
|
|
451
462
|
});
|
|
452
463
|
|
|
453
|
-
it('should be defined', () => {
|
|
464
|
+
it('should be defined', (): void => {
|
|
454
465
|
expect(simplified).toBeDefined();
|
|
455
466
|
});
|
|
456
467
|
|
|
457
|
-
it('should have error', () => {
|
|
468
|
+
it('should have error', (): void => {
|
|
458
469
|
expect(simplified.error).toBeDefined();
|
|
459
470
|
});
|
|
460
471
|
|
|
461
|
-
it('should not have errors', () => {
|
|
472
|
+
it('should not have errors', (): void => {
|
|
462
473
|
expect(simplified.errors).toBeUndefined();
|
|
463
474
|
});
|
|
464
475
|
|
|
465
|
-
it('should not have simplified.error.error', () => {
|
|
476
|
+
it('should not have simplified.error.error', (): void => {
|
|
466
477
|
expect((simplified.error as Dynamo_Error)?.error).toBeUndefined();
|
|
467
478
|
});
|
|
468
479
|
|
|
469
|
-
it('should not have simplified.error.errors', () => {
|
|
480
|
+
it('should not have simplified.error.errors', (): void => {
|
|
470
481
|
expect((simplified.error as Dynamo_Error)?.errors).toBeUndefined();
|
|
471
482
|
});
|
|
472
483
|
});
|
|
473
484
|
|
|
474
|
-
describe('on self defined error;', () => {
|
|
475
|
-
beforeEach(() => {
|
|
485
|
+
describe('on self defined error;', (): void => {
|
|
486
|
+
beforeEach((): void => {
|
|
476
487
|
simplified = error_selfDefined.getErrorSimplified();
|
|
477
488
|
});
|
|
478
489
|
|
|
479
|
-
it('should be defined', () => {
|
|
490
|
+
it('should be defined', (): void => {
|
|
480
491
|
expect(simplified).toBeDefined();
|
|
481
492
|
});
|
|
482
493
|
|
|
483
|
-
it('should have error', () => {
|
|
494
|
+
it('should have error', (): void => {
|
|
484
495
|
expect(simplified.error).toBeDefined();
|
|
485
496
|
});
|
|
486
497
|
|
|
487
|
-
it('should not have errors', () => {
|
|
498
|
+
it('should not have errors', (): void => {
|
|
488
499
|
expect(simplified.errors).toBeUndefined();
|
|
489
500
|
});
|
|
490
501
|
|
|
491
|
-
it('should not have simplified.error.error', () => {
|
|
502
|
+
it('should not have simplified.error.error', (): void => {
|
|
492
503
|
expect((simplified.error as Dynamo_Error)?.error).toBeUndefined();
|
|
493
504
|
});
|
|
494
505
|
|
|
495
|
-
it('should not have simplified.error.errors', () => {
|
|
506
|
+
it('should not have simplified.error.errors', (): void => {
|
|
496
507
|
expect((simplified.error as Dynamo_Error)?.errors).toBeUndefined();
|
|
497
508
|
});
|
|
498
509
|
});
|
|
499
510
|
});
|
|
500
511
|
|
|
501
|
-
describe('should have get proper flat;', () => {
|
|
512
|
+
describe('should have get proper flat;', (): void => {
|
|
502
513
|
let flat;
|
|
503
514
|
|
|
504
|
-
describe('on error_0;', () => {
|
|
505
|
-
beforeEach(() => {
|
|
515
|
+
describe('on error_0;', (): void => {
|
|
516
|
+
beforeEach((): void => {
|
|
506
517
|
flat = error_0.getErrorsFlat();
|
|
507
518
|
});
|
|
508
519
|
|
|
509
|
-
it('should be defined', () => {
|
|
520
|
+
it('should be defined', (): void => {
|
|
510
521
|
expect(flat).toBeDefined();
|
|
511
522
|
});
|
|
512
523
|
|
|
513
|
-
it('should have error', () => {
|
|
524
|
+
it('should have error', (): void => {
|
|
514
525
|
expect(flat.error).toBeDefined();
|
|
515
526
|
});
|
|
516
527
|
|
|
517
|
-
describe('errors...;', () => {
|
|
518
|
-
it('should have errors', () => {
|
|
528
|
+
describe('errors...;', (): void => {
|
|
529
|
+
it('should have errors', (): void => {
|
|
519
530
|
expect(flat?.errors).toBeDefined();
|
|
520
531
|
});
|
|
521
532
|
|
|
522
|
-
it('should have 1 errors', () => {
|
|
533
|
+
it('should have 1 errors', (): void => {
|
|
523
534
|
expect(flat?.errors?.length).toBe(1);
|
|
524
535
|
});
|
|
525
536
|
|
|
526
|
-
flat?.errors?.forEach((error: Dynamo_Error, index: number) => {
|
|
527
|
-
describe(`on error[${index}];`, () => {
|
|
528
|
-
it('should be', () => {
|
|
537
|
+
flat?.errors?.forEach((error: Dynamo_Error, index: number): void => {
|
|
538
|
+
describe(`on error[${index}];`, (): void => {
|
|
539
|
+
it('should be', (): void => {
|
|
529
540
|
expect(error).toBeDefined();
|
|
530
541
|
});
|
|
531
542
|
|
|
532
|
-
it(`should have error[${index}].error`, () => {
|
|
543
|
+
it(`should have error[${index}].error`, (): void => {
|
|
533
544
|
expect(error.error).toBeDefined();
|
|
534
545
|
});
|
|
535
546
|
|
|
536
|
-
it(`should not have error[${index}].errors`, () => {
|
|
547
|
+
it(`should not have error[${index}].errors`, (): void => {
|
|
537
548
|
expect(error.errors).toBeUndefined();
|
|
538
549
|
});
|
|
539
550
|
|
|
540
|
-
it(`should not have error[${index}].error.error`, () => {
|
|
551
|
+
it(`should not have error[${index}].error.error`, (): void => {
|
|
541
552
|
expect((error.error as Dynamo_Error)?.error).toBeUndefined();
|
|
542
553
|
});
|
|
543
554
|
|
|
544
|
-
it(`should not have error[${index}].error.errors`, () => {
|
|
555
|
+
it(`should not have error[${index}].error.errors`, (): void => {
|
|
545
556
|
expect((error.error as Dynamo_Error)?.errors).toBeUndefined();
|
|
546
557
|
});
|
|
547
558
|
});
|
|
@@ -549,47 +560,47 @@ describe('Dynamo_Error;', () => {
|
|
|
549
560
|
});
|
|
550
561
|
});
|
|
551
562
|
|
|
552
|
-
describe('on error_stack_1;', () => {
|
|
553
|
-
beforeEach(() => {
|
|
563
|
+
describe('on error_stack_1;', (): void => {
|
|
564
|
+
beforeEach((): void => {
|
|
554
565
|
flat = error_stack_1.getErrorsFlat();
|
|
555
566
|
});
|
|
556
567
|
|
|
557
|
-
it('should be defined', () => {
|
|
568
|
+
it('should be defined', (): void => {
|
|
558
569
|
expect(flat).toBeDefined();
|
|
559
570
|
});
|
|
560
571
|
|
|
561
|
-
it('should have error', () => {
|
|
572
|
+
it('should have error', (): void => {
|
|
562
573
|
expect(flat.error).toBeDefined();
|
|
563
574
|
});
|
|
564
575
|
|
|
565
|
-
describe('errors...;', () => {
|
|
566
|
-
it('should have errors', () => {
|
|
576
|
+
describe('errors...;', (): void => {
|
|
577
|
+
it('should have errors', (): void => {
|
|
567
578
|
expect(flat?.errors).toBeDefined();
|
|
568
579
|
});
|
|
569
580
|
|
|
570
|
-
it('should have 2 errors', () => {
|
|
581
|
+
it('should have 2 errors', (): void => {
|
|
571
582
|
expect(flat?.errors?.length).toBe(2);
|
|
572
583
|
});
|
|
573
584
|
|
|
574
|
-
flat?.errors?.forEach((error: Dynamo_Error, index: number) => {
|
|
575
|
-
describe(`on error[${index}];`, () => {
|
|
576
|
-
it('should be', () => {
|
|
585
|
+
flat?.errors?.forEach((error: Dynamo_Error, index: number): void => {
|
|
586
|
+
describe(`on error[${index}];`, (): void => {
|
|
587
|
+
it('should be', (): void => {
|
|
577
588
|
expect(error).toBeDefined();
|
|
578
589
|
});
|
|
579
590
|
|
|
580
|
-
it(`should have error[${index}].error`, () => {
|
|
591
|
+
it(`should have error[${index}].error`, (): void => {
|
|
581
592
|
expect(error.error).toBeDefined();
|
|
582
593
|
});
|
|
583
594
|
|
|
584
|
-
it(`should not have error[${index}].errors`, () => {
|
|
595
|
+
it(`should not have error[${index}].errors`, (): void => {
|
|
585
596
|
expect(error.errors).toBeUndefined();
|
|
586
597
|
});
|
|
587
598
|
|
|
588
|
-
it('should not have error[${index}].error.error', () => {
|
|
599
|
+
it('should not have error[${index}].error.error', (): void => {
|
|
589
600
|
expect((error.error as Dynamo_Error)?.error).toBeUndefined();
|
|
590
601
|
});
|
|
591
602
|
|
|
592
|
-
it('should not have error[${index}].error.errors', () => {
|
|
603
|
+
it('should not have error[${index}].error.errors', (): void => {
|
|
593
604
|
expect((error.error as Dynamo_Error)?.errors).toBeUndefined();
|
|
594
605
|
});
|
|
595
606
|
});
|
|
@@ -597,47 +608,47 @@ describe('Dynamo_Error;', () => {
|
|
|
597
608
|
});
|
|
598
609
|
});
|
|
599
610
|
|
|
600
|
-
describe('on error_stack_2;', () => {
|
|
601
|
-
beforeEach(() => {
|
|
611
|
+
describe('on error_stack_2;', (): void => {
|
|
612
|
+
beforeEach((): void => {
|
|
602
613
|
flat = error_stack_2.getErrorsFlat();
|
|
603
614
|
});
|
|
604
615
|
|
|
605
|
-
it('should be defined', () => {
|
|
616
|
+
it('should be defined', (): void => {
|
|
606
617
|
expect(flat).toBeDefined();
|
|
607
618
|
});
|
|
608
619
|
|
|
609
|
-
it('should have error', () => {
|
|
620
|
+
it('should have error', (): void => {
|
|
610
621
|
expect(flat.error).toBeDefined();
|
|
611
622
|
});
|
|
612
623
|
|
|
613
|
-
describe('errors...;', () => {
|
|
614
|
-
it('should have errors', () => {
|
|
624
|
+
describe('errors...;', (): void => {
|
|
625
|
+
it('should have errors', (): void => {
|
|
615
626
|
expect(flat?.errors).toBeDefined();
|
|
616
627
|
});
|
|
617
628
|
|
|
618
|
-
it('should have 3 errors', () => {
|
|
629
|
+
it('should have 3 errors', (): void => {
|
|
619
630
|
expect(flat?.errors?.length).toBe(3);
|
|
620
631
|
});
|
|
621
632
|
|
|
622
|
-
flat?.errors?.forEach((error: Dynamo_Error, index: number) => {
|
|
623
|
-
describe(`on error[${index}];`, () => {
|
|
624
|
-
it('should be', () => {
|
|
633
|
+
flat?.errors?.forEach((error: Dynamo_Error, index: number): void => {
|
|
634
|
+
describe(`on error[${index}];`, (): void => {
|
|
635
|
+
it('should be', (): void => {
|
|
625
636
|
expect(error).toBeDefined();
|
|
626
637
|
});
|
|
627
638
|
|
|
628
|
-
it(`should have error[${index}].error`, () => {
|
|
639
|
+
it(`should have error[${index}].error`, (): void => {
|
|
629
640
|
expect(error.error).toBeDefined();
|
|
630
641
|
});
|
|
631
642
|
|
|
632
|
-
it(`should not have error[${index}].errors`, () => {
|
|
643
|
+
it(`should not have error[${index}].errors`, (): void => {
|
|
633
644
|
expect(error.errors).toBeUndefined();
|
|
634
645
|
});
|
|
635
646
|
|
|
636
|
-
it(`should not have error[${index}].error.error`, () => {
|
|
647
|
+
it(`should not have error[${index}].error.error`, (): void => {
|
|
637
648
|
expect((error.error as Dynamo_Error)?.error).toBeUndefined();
|
|
638
649
|
});
|
|
639
650
|
|
|
640
|
-
it(`should not have error[${index}].error.errors`, () => {
|
|
651
|
+
it(`should not have error[${index}].error.errors`, (): void => {
|
|
641
652
|
expect((error.error as Dynamo_Error)?.errors).toBeUndefined();
|
|
642
653
|
});
|
|
643
654
|
});
|
|
@@ -645,47 +656,47 @@ describe('Dynamo_Error;', () => {
|
|
|
645
656
|
});
|
|
646
657
|
});
|
|
647
658
|
|
|
648
|
-
describe('on self defined error;', () => {
|
|
649
|
-
beforeEach(() => {
|
|
659
|
+
describe('on self defined error;', (): void => {
|
|
660
|
+
beforeEach((): void => {
|
|
650
661
|
flat = error_selfDefined.getErrorsFlat();
|
|
651
662
|
});
|
|
652
663
|
|
|
653
|
-
it('should be defined', () => {
|
|
664
|
+
it('should be defined', (): void => {
|
|
654
665
|
expect(flat).toBeDefined();
|
|
655
666
|
});
|
|
656
667
|
|
|
657
|
-
it('should have error', () => {
|
|
668
|
+
it('should have error', (): void => {
|
|
658
669
|
expect(flat.error).toBeDefined();
|
|
659
670
|
});
|
|
660
671
|
|
|
661
|
-
describe('errors...;', () => {
|
|
662
|
-
it('should have errors', () => {
|
|
672
|
+
describe('errors...;', (): void => {
|
|
673
|
+
it('should have errors', (): void => {
|
|
663
674
|
expect(flat?.errors).toBeDefined();
|
|
664
675
|
});
|
|
665
676
|
|
|
666
|
-
it('should have 1 errors', () => {
|
|
677
|
+
it('should have 1 errors', (): void => {
|
|
667
678
|
expect(flat?.errors?.length).toBe(1);
|
|
668
679
|
});
|
|
669
680
|
|
|
670
|
-
flat?.errors?.forEach((error: Dynamo_Error, index: number) => {
|
|
671
|
-
describe(`on error[${index}];`, () => {
|
|
672
|
-
it('should be', () => {
|
|
681
|
+
flat?.errors?.forEach((error: Dynamo_Error, index: number): void => {
|
|
682
|
+
describe(`on error[${index}];`, (): void => {
|
|
683
|
+
it('should be', (): void => {
|
|
673
684
|
expect(error).toBeDefined();
|
|
674
685
|
});
|
|
675
686
|
|
|
676
|
-
it(`should have error[${index}].error`, () => {
|
|
687
|
+
it(`should have error[${index}].error`, (): void => {
|
|
677
688
|
expect(error.error).toBeDefined();
|
|
678
689
|
});
|
|
679
690
|
|
|
680
|
-
it(`should not have error[${index}].errors`, () => {
|
|
691
|
+
it(`should not have error[${index}].errors`, (): void => {
|
|
681
692
|
expect(error.errors).toBeUndefined();
|
|
682
693
|
});
|
|
683
694
|
|
|
684
|
-
it(`should not have error[${index}].error.error`, () => {
|
|
695
|
+
it(`should not have error[${index}].error.error`, (): void => {
|
|
685
696
|
expect((error.error as Dynamo_Error)?.error).toBeUndefined();
|
|
686
697
|
});
|
|
687
698
|
|
|
688
|
-
it(`should not have error[${index}].error.errors`, () => {
|
|
699
|
+
it(`should not have error[${index}].error.errors`, (): void => {
|
|
689
700
|
expect((error.error as Dynamo_Error)?.errors).toBeUndefined();
|
|
690
701
|
});
|
|
691
702
|
});
|