File tree 1 file changed +4
-4
lines changed
packages/logger/tests/unit
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1247,7 +1247,7 @@ describe('Class: Logger', () => {
1247
1247
@logger . injectLambdaContext ( )
1248
1248
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
1249
1249
// @ts -ignore
1250
- public async handler < TResult > ( _event : unknown , _context : Context , _callback : Callback < TResult > ) : void | Promise < TResult > {
1250
+ public async handler ( _event : unknown , _context : unknown ) : Promise < unknown > {
1251
1251
await this . dummyMethod ( ) ;
1252
1252
logger . info ( 'This is a DEBUG log' ) ;
1253
1253
@@ -1258,11 +1258,11 @@ describe('Class: Logger', () => {
1258
1258
return ;
1259
1259
}
1260
1260
}
1261
-
1262
- // Act
1263
1261
const lambda = new LambdaFunction ( ) ;
1264
1262
const handler = lambda . handler . bind ( lambda ) ;
1265
- await handler ( { } , context , ( ) => console . log ( 'Lambda invoked!' ) ) ;
1263
+
1264
+ // Act
1265
+ await handler ( { } , context ) ;
1266
1266
1267
1267
// Assess
1268
1268
expect ( consoleSpy ) . toBeCalledTimes ( 1 ) ;
You can’t perform that action at this time.
0 commit comments