This repository was archived by the owner on Jul 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
features/workspace/components/__tests__ Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ test('can rename workspace', async () => {
20
20
await userEvent . click ( getByRole ( 'button' , { name : / s a v e / i } ) )
21
21
22
22
await waitFor ( ( ) => {
23
- expect ( getByText ( / r e n a m e d w o r k s p a c e t o " b a z - q u x " / i) ) . toBeVisible ( )
23
+ expect ( getByText ( / u p d a t e d w o r k s p a c e / i) ) . toBeVisible ( )
24
24
} )
25
25
} )
26
26
Original file line number Diff line number Diff line change @@ -58,6 +58,18 @@ export const handlers = [
58
58
mswEndpoint ( '/api/v1/workspaces/active' ) ,
59
59
( ) => new HttpResponse ( null , { status : 204 } )
60
60
) ,
61
+ http . put ( mswEndpoint ( '/api/v1/workspaces/:workspace_name' ) , ( ) =>
62
+ HttpResponse . json (
63
+ {
64
+ name : 'foo' ,
65
+ config : {
66
+ custom_instructions : '' ,
67
+ muxing_rules : [ ] ,
68
+ } ,
69
+ } ,
70
+ { status : 201 }
71
+ )
72
+ ) ,
61
73
http . post (
62
74
mswEndpoint ( '/api/v1/workspaces/archive/:workspace_name/recover' ) ,
63
75
( ) => new HttpResponse ( null , { status : 204 } )
@@ -105,8 +117,8 @@ export const handlers = [
105
117
mswEndpoint ( '/api/v1/workspaces/:workspace_name/custom-instructions' ) ,
106
118
( ) => new HttpResponse ( null , { status : 204 } )
107
119
) ,
108
- http . get ( mswEndpoint ( " /api/v1/workspaces/:workspace_name/muxes" ) , ( ) =>
109
- HttpResponse . json ( [ ] ) ,
120
+ http . get ( mswEndpoint ( ' /api/v1/workspaces/:workspace_name/muxes' ) , ( ) =>
121
+ HttpResponse . json ( [ ] )
110
122
) ,
111
123
http . put (
112
124
mswEndpoint ( '/api/v1/workspaces/:workspace_name/muxes' ) ,
You can’t perform that action at this time.
0 commit comments