File tree Expand file tree Collapse file tree 1 file changed +28
-16
lines changed
site/src/modules/resources Expand file tree Collapse file tree 1 file changed +28
-16
lines changed Original file line number Diff line number Diff line change @@ -286,11 +286,17 @@ export const GroupApp: Story = {
286
286
} ;
287
287
288
288
export const Devcontainer : Story = {
289
- beforeEach : ( ) => {
290
- spyOn ( API , "getAgentContainers" ) . mockResolvedValue ( {
291
- devcontainers : [ M . MockWorkspaceAgentDevcontainer ] ,
292
- containers : [ M . MockWorkspaceAgentContainer ] ,
293
- } ) ;
289
+ parameters : {
290
+ queries : [
291
+ {
292
+ key : [ "agents" , M . MockWorkspaceAgent . id , "containers" ] ,
293
+ data : {
294
+ devcontainers : [ M . MockWorkspaceAgentDevcontainer ] ,
295
+ containers : [ M . MockWorkspaceAgentContainer ] ,
296
+ } ,
297
+ } ,
298
+ ] ,
299
+ webSocket : [ ] ,
294
300
} ,
295
301
} ;
296
302
@@ -300,17 +306,23 @@ export const FoundDevcontainer: Story = {
300
306
...M . MockWorkspaceAgentReady ,
301
307
} ,
302
308
} ,
303
- beforeEach : ( ) => {
304
- spyOn ( API , "getAgentContainers" ) . mockResolvedValue ( {
305
- devcontainers : [
306
- {
307
- ...M . MockWorkspaceAgentDevcontainer ,
308
- status : "stopped" ,
309
- container : undefined ,
310
- agent : undefined ,
309
+ parameters : {
310
+ queries : [
311
+ {
312
+ key : [ "agents" , M . MockWorkspaceAgentReady . id , "containers" ] ,
313
+ data : {
314
+ devcontainers : [
315
+ {
316
+ ...M . MockWorkspaceAgentDevcontainer ,
317
+ status : "stopped" ,
318
+ container : undefined ,
319
+ agent : undefined ,
320
+ } ,
321
+ ] ,
322
+ containers : [ ] ,
311
323
} ,
312
- ] ,
313
- containers : [ ] ,
314
- } ) ;
324
+ } ,
325
+ ] ,
326
+ webSocket : [ ] ,
315
327
} ,
316
328
} ;
You can’t perform that action at this time.
0 commit comments