File tree 2 files changed +0
-14
lines changed
2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -91,9 +91,4 @@ describe('app', () => {
91
91
assert . deepStrictEqual ( Koa . HttpError , CreateError . HttpError )
92
92
assert . throws ( ( ) => { throw new CreateError ( 500 , 'test error' ) } , Koa . HttpError )
93
93
} )
94
-
95
- it ( 'should export createAsyncCtxStorageMiddleware function' , ( ) => {
96
- const app = new Koa ( )
97
- assert . strictEqual ( typeof app . createAsyncCtxStorageMiddleware , 'function' )
98
- } )
99
94
} )
Original file line number Diff line number Diff line change @@ -248,15 +248,6 @@ module.exports = class Application extends Emitter {
248
248
static get default ( ) {
249
249
return Application
250
250
}
251
-
252
- createAsyncCtxStorageMiddleware ( ) {
253
- const app = this
254
- return async function asyncCtxStorage ( ctx , next ) {
255
- await app . ctxStorage . run ( ctx , async ( ) => {
256
- return await next ( )
257
- } )
258
- }
259
- }
260
251
}
261
252
262
253
/**
You can’t perform that action at this time.
0 commit comments