@@ -9,22 +9,22 @@ class CoderWorkspacesStepViewTest extends Specification {
9
9
def table = new WorkspacesTable ()
10
10
table. listTableModel. items = List . of(
11
11
// An off workspace.
12
- DataGen . workspaceAgentModel(" ws1" , " ws1 " ),
12
+ DataGen . workspaceAgentModel(" ws1" ),
13
13
14
14
// On workspaces.
15
15
DataGen . workspaceAgentModel(" agent1" , " ws2" ),
16
16
DataGen . workspaceAgentModel(" agent2" , " ws2" ),
17
17
DataGen . workspaceAgentModel(" agent3" , " ws3" ),
18
18
19
19
// Another off workspace.
20
- DataGen . workspaceAgentModel(" ws4" , " ws4 " ),
20
+ DataGen . workspaceAgentModel(" ws4" ),
21
21
22
22
// In practice we do not list both agents and workspaces
23
23
// together but here test that anyway with an agent first and
24
24
// then with a workspace first.
25
25
DataGen . workspaceAgentModel(" agent2" , " ws5" ),
26
- DataGen . workspaceAgentModel(" ws5" , " ws5 " ),
27
- DataGen . workspaceAgentModel(" ws6" , " ws6 " ),
26
+ DataGen . workspaceAgentModel(" ws5" ),
27
+ DataGen . workspaceAgentModel(" ws6" ),
28
28
DataGen . workspaceAgentModel(" agent3" , " ws6" ),
29
29
)
30
30
@@ -35,19 +35,19 @@ class CoderWorkspacesStepViewTest extends Specification {
35
35
selected | expected
36
36
null | -1 // No selection.
37
37
DataGen . workspaceAgentModel(" gone" , " gone" ) | -1 // No workspace that matches.
38
- DataGen . workspaceAgentModel(" ws1" , " ws1 " ) | 0 // Workspace exact match.
38
+ DataGen . workspaceAgentModel(" ws1" ) | 0 // Workspace exact match.
39
39
DataGen . workspaceAgentModel(" gone" , " ws1" ) | 0 // Agent gone, select workspace.
40
- DataGen . workspaceAgentModel(" ws2" , " ws2 " ) | 1 // Workspace gone, select first agent.
40
+ DataGen . workspaceAgentModel(" ws2" ) | 1 // Workspace gone, select first agent.
41
41
DataGen . workspaceAgentModel(" agent1" , " ws2" ) | 1 // Agent exact match.
42
42
DataGen . workspaceAgentModel(" agent2" , " ws2" ) | 2 // Agent exact match.
43
- DataGen . workspaceAgentModel(" ws3" , " ws3 " ) | 3 // Workspace gone, select first agent.
43
+ DataGen . workspaceAgentModel(" ws3" ) | 3 // Workspace gone, select first agent.
44
44
DataGen . workspaceAgentModel(" agent3" , " ws3" ) | 3 // Agent exact match.
45
45
DataGen . workspaceAgentModel(" gone" , " ws4" ) | 4 // Agent gone, select workspace.
46
- DataGen . workspaceAgentModel(" ws4" , " ws4 " ) | 4 // Workspace exact match.
46
+ DataGen . workspaceAgentModel(" ws4" ) | 4 // Workspace exact match.
47
47
DataGen . workspaceAgentModel(" agent2" , " ws5" ) | 5 // Agent exact match.
48
48
DataGen . workspaceAgentModel(" gone" , " ws5" ) | 5 // Agent gone, another agent comes first.
49
- DataGen . workspaceAgentModel(" ws5" , " ws5 " ) | 6 // Workspace exact match.
50
- DataGen . workspaceAgentModel(" ws6" , " ws6 " ) | 7 // Workspace exact match.
49
+ DataGen . workspaceAgentModel(" ws5" ) | 6 // Workspace exact match.
50
+ DataGen . workspaceAgentModel(" ws6" ) | 7 // Workspace exact match.
51
51
DataGen . workspaceAgentModel(" gone" , " ws6" ) | 7 // Agent gone, workspace comes first.
52
52
DataGen . workspaceAgentModel(" agent3" , " ws6" ) | 8 // Agent exact match.
53
53
}
0 commit comments