File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -34,18 +34,16 @@ describe("endpoint", () => {
34
34
} ) ;
35
35
36
36
describe ( "Accesspoint ARN" , ( ) => {
37
- const endpointValidator : BuildMiddleware < any , any > = ( next , context ) => ( args ) => {
37
+ const endpointValidator : BuildMiddleware < any , any > = ( next , context ) => async ( args ) =>
38
38
// middleware intercept the request and return it early
39
- const request = args . request as HttpRequest ;
40
- return Promise . resolve ( {
39
+ ( {
41
40
output : {
42
41
$metadata : { attempts : 0 , httpStatusCode : 200 } ,
43
- request,
42
+ request : args . request as HttpRequest ,
44
43
context,
45
44
} as any ,
46
45
response : { } as any ,
47
46
} ) ;
48
- } ;
49
47
50
48
it ( "should succeed with access point ARN" , async ( ) => {
51
49
const client = new S3 ( { region : "us-west-2" } ) ;
You can’t perform that action at this time.
0 commit comments