@@ -59,7 +59,7 @@ describe("ProcessAWSAccessRequest", () => {
59
59
const fetchCalls : string [ ] = [ ] ;
60
60
fetchSpy . mockImplementation ( ( url , options ) => {
61
61
fetchCalls . push ( `Fetch call to: ${ url } ` ) ;
62
- if ( url . includes ( "/aws- access" ) ) {
62
+ if ( url . includes ( "/aws/groups/ access" ) ) {
63
63
return Promise . resolve ( { ok : true } as Response ) ;
64
64
} else if ( url . includes ( "/channels/123456789/messages" ) ) {
65
65
return Promise . resolve ( { ok : true } as Response ) ;
@@ -77,15 +77,15 @@ describe("ProcessAWSAccessRequest", () => {
77
77
expect ( fetchSpy ) . toHaveBeenCalledTimes ( 2 ) ;
78
78
expect ( fetchCalls ) . toHaveLength ( 2 ) ;
79
79
80
- expect ( fetchCalls [ 0 ] ) . toContain ( "/aws- access" ) ;
80
+ expect ( fetchCalls [ 0 ] ) . toContain ( "/aws/groups/ access" ) ;
81
81
expect ( fetchCalls [ 1 ] ) . toContain ( "/channels/123456789/messages" ) ;
82
82
} ) ;
83
83
84
84
it ( "should handle API error" , async ( ) => {
85
85
const fetchCalls : string [ ] = [ ] ;
86
86
fetchSpy . mockImplementation ( ( url , options ) => {
87
87
fetchCalls . push ( `Fetch call to: ${ url } ` ) ;
88
- if ( url . includes ( "/aws- access" ) ) {
88
+ if ( url . includes ( "/aws/groups/ access" ) ) {
89
89
return Promise . resolve ( {
90
90
ok : false ,
91
91
status : 500 ,
@@ -107,7 +107,7 @@ describe("ProcessAWSAccessRequest", () => {
107
107
expect ( fetchSpy ) . toHaveBeenCalledTimes ( 2 ) ;
108
108
expect ( fetchCalls ) . toHaveLength ( 2 ) ;
109
109
110
- expect ( fetchCalls [ 0 ] ) . toContain ( "/aws- access" ) ;
110
+ expect ( fetchCalls [ 0 ] ) . toContain ( "/aws/groups/ access" ) ;
111
111
expect ( fetchCalls [ 1 ] ) . toContain ( "/channels/123456789/messages" ) ;
112
112
} ) ;
113
113
} ) ;
0 commit comments