@@ -24,7 +24,7 @@ describe('hook decorators', () => {
24
24
@BeforeCreateOne ( hookFn )
25
25
class Test { }
26
26
27
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_CREATE_ONE , Test ) !
27
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_CREATE_ONE , Test )
28
28
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( hookFn )
29
29
} )
30
30
@@ -36,7 +36,7 @@ describe('hook decorators', () => {
36
36
37
37
class Test extends Base { }
38
38
39
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_CREATE_ONE , Test ) !
39
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_CREATE_ONE , Test )
40
40
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( hookFn )
41
41
} )
42
42
@@ -51,7 +51,7 @@ describe('hook decorators', () => {
51
51
@BeforeCreateOne ( childHookFn )
52
52
class Test extends Base { }
53
53
54
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_CREATE_ONE , Test ) !
54
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_CREATE_ONE , Test )
55
55
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( childHookFn )
56
56
} )
57
57
@@ -72,7 +72,7 @@ describe('hook decorators', () => {
72
72
@BeforeCreateMany ( hookFn )
73
73
class Test { }
74
74
75
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_CREATE_MANY , Test ) !
75
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_CREATE_MANY , Test )
76
76
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( hookFn )
77
77
} )
78
78
@@ -84,7 +84,7 @@ describe('hook decorators', () => {
84
84
85
85
class Test extends Base { }
86
86
87
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_CREATE_MANY , Test ) !
87
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_CREATE_MANY , Test )
88
88
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( hookFn )
89
89
} )
90
90
@@ -99,7 +99,7 @@ describe('hook decorators', () => {
99
99
@BeforeCreateMany ( childHookFn )
100
100
class Test extends Base { }
101
101
102
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_CREATE_MANY , Test ) !
102
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_CREATE_MANY , Test )
103
103
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( childHookFn )
104
104
} )
105
105
@@ -120,7 +120,7 @@ describe('hook decorators', () => {
120
120
@BeforeUpdateOne ( hookFn )
121
121
class Test { }
122
122
123
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_UPDATE_ONE , Test ) !
123
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_UPDATE_ONE , Test )
124
124
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( hookFn )
125
125
} )
126
126
@@ -132,7 +132,7 @@ describe('hook decorators', () => {
132
132
133
133
class Test extends Base { }
134
134
135
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_UPDATE_ONE , Test ) !
135
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_UPDATE_ONE , Test )
136
136
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( hookFn )
137
137
} )
138
138
@@ -147,7 +147,7 @@ describe('hook decorators', () => {
147
147
@BeforeUpdateOne ( childHookFn )
148
148
class Test extends Base { }
149
149
150
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_UPDATE_ONE , Test ) !
150
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_UPDATE_ONE , Test )
151
151
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( childHookFn )
152
152
} )
153
153
@@ -168,7 +168,7 @@ describe('hook decorators', () => {
168
168
@BeforeUpdateMany ( hookFn )
169
169
class Test { }
170
170
171
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_UPDATE_MANY , Test ) !
171
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_UPDATE_MANY , Test )
172
172
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( hookFn )
173
173
} )
174
174
@@ -180,7 +180,7 @@ describe('hook decorators', () => {
180
180
181
181
class Test extends Base { }
182
182
183
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_UPDATE_MANY , Test ) !
183
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_UPDATE_MANY , Test )
184
184
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( hookFn )
185
185
} )
186
186
@@ -195,7 +195,7 @@ describe('hook decorators', () => {
195
195
@BeforeUpdateMany ( childHookFn )
196
196
class Test extends Base { }
197
197
198
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_UPDATE_MANY , Test ) !
198
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_UPDATE_MANY , Test )
199
199
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( childHookFn )
200
200
} )
201
201
@@ -216,7 +216,7 @@ describe('hook decorators', () => {
216
216
@BeforeDeleteOne ( hookFn )
217
217
class Test { }
218
218
219
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_DELETE_ONE , Test ) !
219
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_DELETE_ONE , Test )
220
220
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( hookFn )
221
221
} )
222
222
@@ -228,7 +228,7 @@ describe('hook decorators', () => {
228
228
229
229
class Test extends Base { }
230
230
231
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_DELETE_ONE , Test ) !
231
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_DELETE_ONE , Test )
232
232
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( hookFn )
233
233
} )
234
234
@@ -243,7 +243,7 @@ describe('hook decorators', () => {
243
243
@BeforeDeleteOne ( childHookFn )
244
244
class Test extends Base { }
245
245
246
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_DELETE_ONE , Test ) !
246
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_DELETE_ONE , Test )
247
247
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( childHookFn )
248
248
} )
249
249
@@ -264,7 +264,7 @@ describe('hook decorators', () => {
264
264
@BeforeDeleteMany ( hookFn )
265
265
class Test { }
266
266
267
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_DELETE_MANY , Test ) !
267
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_DELETE_MANY , Test )
268
268
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( hookFn )
269
269
} )
270
270
@@ -276,7 +276,7 @@ describe('hook decorators', () => {
276
276
277
277
class Test extends Base { }
278
278
279
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_DELETE_MANY , Test ) !
279
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_DELETE_MANY , Test )
280
280
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( hookFn )
281
281
} )
282
282
@@ -291,7 +291,7 @@ describe('hook decorators', () => {
291
291
@BeforeDeleteMany ( childHookFn )
292
292
class Test extends Base { }
293
293
294
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_DELETE_MANY , Test ) !
294
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_DELETE_MANY , Test )
295
295
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( childHookFn )
296
296
} )
297
297
@@ -312,7 +312,7 @@ describe('hook decorators', () => {
312
312
@BeforeQueryMany ( hookFn )
313
313
class Test { }
314
314
315
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_QUERY_MANY , Test ) !
315
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_QUERY_MANY , Test )
316
316
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( hookFn )
317
317
} )
318
318
@@ -324,7 +324,7 @@ describe('hook decorators', () => {
324
324
325
325
class Test extends Base { }
326
326
327
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_QUERY_MANY , Test ) !
327
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_QUERY_MANY , Test )
328
328
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( hookFn )
329
329
} )
330
330
@@ -339,7 +339,7 @@ describe('hook decorators', () => {
339
339
@BeforeQueryMany ( childHookFn )
340
340
class Test extends Base { }
341
341
342
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_QUERY_MANY , Test ) !
342
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_QUERY_MANY , Test )
343
343
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( childHookFn )
344
344
} )
345
345
@@ -360,7 +360,7 @@ describe('hook decorators', () => {
360
360
@BeforeFindOne ( hookFn )
361
361
class Test { }
362
362
363
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_FIND_ONE , Test ) !
363
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_FIND_ONE , Test )
364
364
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( hookFn )
365
365
} )
366
366
@@ -372,7 +372,7 @@ describe('hook decorators', () => {
372
372
373
373
class Test extends Base { }
374
374
375
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_FIND_ONE , Test ) !
375
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_FIND_ONE , Test )
376
376
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( hookFn )
377
377
} )
378
378
@@ -387,7 +387,7 @@ describe('hook decorators', () => {
387
387
@BeforeFindOne ( childHookFn )
388
388
class Test extends Base { }
389
389
390
- const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_FIND_ONE , Test ) !
390
+ const Stored : Class < Hook < any > > [ ] = getHooksForType ( HookTypes . BEFORE_FIND_ONE , Test )
391
391
expect ( new Stored [ 0 ] ( ) . run ) . toBe ( childHookFn )
392
392
} )
393
393
0 commit comments