@@ -35,7 +35,7 @@ const bootstrapOakServerTest = async (
35
35
app . use ( router . allowedMethods ( ) ) ;
36
36
37
37
const controller = new AbortController ( ) ;
38
- const { signal } = controller ;
38
+ const signal = controller . signal ;
39
39
const freePort = await getFreePort ( random ( 1024 , 49151 ) ) ;
40
40
41
41
app . addEventListener ( "listen" , ( { hostname, port, secure } : any ) => {
@@ -52,7 +52,7 @@ describe("Oak: superdeno(url)", () => {
52
52
it ( "Oak: superdeno(url): should support open `superdeno(url)` format for web frameworks such as Oak" , async ( done ) => {
53
53
await bootstrapOakServerTest ( {
54
54
configureApp : ( { router } ) => {
55
- router . get ( "/" , ( ctx : Oak . RouterContext ) => {
55
+ router . get ( "/" , ( ctx ) => {
56
56
ctx . response . body = "hello" ;
57
57
} ) ;
58
58
} ,
@@ -71,7 +71,7 @@ describe("Oak: superdeno(url)", () => {
71
71
it ( "Oak: superdeno(url): .expect(status, body[, fn]): should assert the response body and status" , async ( done ) => {
72
72
await bootstrapOakServerTest ( {
73
73
configureApp : ( { router } ) => {
74
- router . get ( "/" , ( ctx : Oak . RouterContext ) => {
74
+ router . get ( "/" , ( ctx ) => {
75
75
ctx . response . body = "foo" ;
76
76
} ) ;
77
77
} ,
@@ -89,7 +89,7 @@ describe("Oak: superdeno(url)", () => {
89
89
it ( "superdeno(app): .expect(status, body[, fn]): should assert the response body and error status'" , async ( done ) => {
90
90
await bootstrapOakServerTest ( {
91
91
configureApp : ( { router } ) => {
92
- router . get ( "/" , ( ctx : Oak . RouterContext ) => {
92
+ router . get ( "/" , ( ctx ) => {
93
93
ctx . throw ( 400 , "foo" ) ;
94
94
} ) ;
95
95
} ,
@@ -109,7 +109,7 @@ describe("Oak: superdeno(url)", () => {
109
109
it ( "Oak: superdeno(url): .end(cb): should set `this` to the test object when calling the `cb` in `.end(cb)`" , async ( done ) => {
110
110
await bootstrapOakServerTest ( {
111
111
configureApp : ( { router } ) => {
112
- router . get ( "/" , ( ctx : Oak . RouterContext ) => {
112
+ router . get ( "/" , ( ctx ) => {
113
113
ctx . response . body = "hello" ;
114
114
} ) ;
115
115
} ,
@@ -133,7 +133,7 @@ describe("Oak: superdeno(app.handle)", () => {
133
133
const router = new Router ( ) ;
134
134
const app = new Application ( ) ;
135
135
136
- router . get ( "/" , ( ctx : Oak . RouterContext ) => {
136
+ router . get ( "/" , ( ctx ) => {
137
137
ctx . response . body = "Hello Deno!" ;
138
138
} ) ;
139
139
0 commit comments