File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/google-cloud-serverless/test/gcpfunction Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ describe('wrapCloudEventFunction', () => {
86
86
87
87
describe ( 'wrapEventFunction() as Promise' , ( ) => {
88
88
test ( 'successful execution' , async ( ) => {
89
- const func : CloudEventFunction = ( _context ) =>
89
+ const func : CloudEventFunction = _context =>
90
90
new Promise ( resolve => {
91
91
setTimeout ( ( ) => {
92
92
resolve ( 42 ) ;
@@ -111,7 +111,7 @@ describe('wrapCloudEventFunction', () => {
111
111
112
112
test ( 'capture error' , async ( ) => {
113
113
const error = new Error ( 'wat' ) ;
114
- const handler : CloudEventFunction = ( _context ) =>
114
+ const handler : CloudEventFunction = _context =>
115
115
new Promise ( ( _ , reject ) => {
116
116
setTimeout ( ( ) => {
117
117
reject ( error ) ;
You can’t perform that action at this time.
0 commit comments